IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 26, 2007, 3:10:21 PM (19 years ago)
Author:
Paul Price
Message:

Fixing problem with resolving directories using PS::IPP::Config->datapath() --- use of File::Spec->catfile on $workdir = path://SOMETHING/ produced path:/SOMETHING/ which then killed the URI parsing in PS::IPP::Config->convert_filename_absolute().

File:
1 edited

Legend:

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

    r11319 r11333  
    9191}
    9292
    93 unless (defined $workdir) {
     93if (defined $workdir) {
     94    $workdir = $ipprc->convert_filename_absolute( $workdir );
     95} else {
    9496    my $example = ${$files}[0]->{uri}; # Example file
    9597    my ($vol, $dir, $file) = File::Spec->splitpath( $example );
     
    100102my $outputRoot = $camera . '.' . $det_type . '.' . $det_id . '.' . $iter . '.' . $class_id; # Root name
    101103$outputRoot = File::Spec->catfile( $workdir, $outputRoot );
    102 $outputRoot = $ipprc->convert_filename_absolute($outputRoot);
    103104my $outputStack = $outputRoot . '.fits'; # Output name
    104105my $outputStats = $outputRoot . '.stats'; # Statistics name
Note: See TracChangeset for help on using the changeset viewer.