IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 8, 2007, 5:41:36 PM (19 years ago)
Author:
Paul Price
Message:

Fixing up workdir, so that operations go into the current directory if workdir is NULL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/detrend.stack.pro

    r12126 r12368  
    134134    end
    135135
    136     # XXX add $WORKDIR/$LOG_DIR
    137     # XXX use ipp_filename.pl to lookup output file names
    138     $outroot = `ipp_datapath.pl $WORKDIR`
     136    if ($WORKDIR == NULL)
     137      $outroot = `pwd`
     138    else
     139      $outroot = `ipp_datapath.pl $WORKDIR`
     140    end
    139141    $outroot = $outroot/$CAMERA.$DET_TYPE.$DET_ID
    140142    $logfile = $outroot/detstack.$DET_ID.$ITERATION.$CLASS_ID.log
     
    148150    # create the command line
    149151    if ($VERBOSE > 1)
    150       echo command detrend_stack.pl --det_id $DET_ID --iteration $ITERATION --class_id $CLASS_ID --det_type $DET_TYPE --camera $CAMERA $ARGS
     152      echo command detrend_stack.pl --det_id $DET_ID --iteration $ITERATION --class_id $CLASS_ID --det_type $DET_TYPE --camera $CAMERA --workdir $outroot $ARGS
    151153    end
    152     command detrend_stack.pl --det_id $DET_ID --iteration $ITERATION --class_id $CLASS_ID --det_type $DET_TYPE --camera $CAMERA $ARGS
     154    command detrend_stack.pl --det_id $DET_ID --iteration $ITERATION --class_id $CLASS_ID --det_type $DET_TYPE --camera $CAMERA --workdir $outroot $ARGS
    153155  end
    154156
Note: See TracChangeset for help on using the changeset viewer.