IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 15, 2009, 12:34:10 PM (17 years ago)
Author:
bills
Message:

Allow files to be injected to be nebulous files

File:
1 edited

Legend:

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

    r17604 r24201  
    1515use IPC::Cmd 0.36 qw( can_run run );
    1616use File::Spec;
    17 use PS::IPP::Config;
     17use PS::IPP::Config qw( :standard );
    1818
    1919my $ipprc = PS::IPP::Config->new(); # this is used for PATH, NEB filename conversions
     
    8484foreach my $file ( @ARGV ) {
    8585    # check for file existence
    86     if (! -e $file) { die "file $file not found\n"; }
     86    my $resolved = $ipprc->file_resolve($file);
     87    if (!$resolved or ! -e $resolved) { die "file $file not found\n"; }
    8788    if (! $exp_name) {
    8889        # strip off the extension
     
    128129    my $file = $ARGV[$i];
    129130
    130     my $absfile = File::Spec->rel2abs( $file );
    131     my $relfile = $ipprc->convert_filename_relative( $absfile );
     131    my $relfile;
     132    my $scheme = file_scheme($file);
     133    if (!$scheme or $scheme ne 'neb') {
     134        my $absfile = File::Spec->rel2abs( $file );
     135        $relfile = $ipprc->convert_filename_relative( $absfile );
     136    } else {
     137        $relfile = $file;
     138    }
    132139
    133140    # the class_id used here is temporary : register replaces it with the true class_id
Note: See TracChangeset for help on using the changeset viewer.