IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 13, 2008, 4:18:40 PM (18 years ago)
Author:
bills
Message:

use file_resolve() to resolve nebulous paths since it's fixed now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/ipp_image_path.pl

    r17663 r17669  
    7777        my ($scheme) = $uri =~/^(path|neb|file):/;
    7878
    79         # XXX: I'd like to just use file_resolve but it doesn't currently
    80         # work for nebulous paths
    8179        if (!$scheme) {
    8280            $path =  $uri;
    8381        } else {
    84             if (lc($scheme) ne "neb") {
    85                 $path = $ipprc->file_resolve($uri);
    86             } else {
    87                 # use neb-locate
    88                 my $command = "$neb_locate $uri";
    89                 my ($success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    90                     run(command => $command, verbose => $verbose);
    91                 unless ($success) {
    92                     $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
    93                     warn ("Unable to run $command: $error_code");
    94                     exit($error_code);
    95                 }
    96                 $path = "@$stdout_buf";
    97                 chomp $path;
    98             }
     82            $path = $ipprc->file_resolve($uri);
    9983        }
    10084        if ($path) {
Note: See TracChangeset for help on using the changeset viewer.