Index: trunk/ippTasks/chip.pro
===================================================================
--- trunk/ippTasks/chip.pro	(revision 12224)
+++ trunk/ippTasks/chip.pro	(revision 12368)
@@ -135,5 +135,9 @@
 
     ## generate output log based on filerule
-    $outroot = `ipp_datapath.pl $WORKDIR`
+    if ($WORKDIR == NULL)
+      $outroot = `pwd`
+    else
+      $outroot = `ipp_datapath.pl $WORKDIR`
+    end
     $outroot = $outroot/$EXP_ID
     $logfile = $outroot/chip.$CLASS_ID.log
@@ -147,7 +151,7 @@
     # create the command line
     if ($VERBOSE > 1)
-      echo command chip_imfile.pl --exp_id $EXP_ID --chip_id $CHIP_ID --class_id $CLASS_ID --uri $URI --camera $CAMERA $ARGS
+      echo command chip_imfile.pl --exp_id $EXP_ID --chip_id $CHIP_ID --class_id $CLASS_ID --uri $URI --camera $CAMERA --workdir $outroot $ARGS
     end
-    command chip_imfile.pl --exp_id $EXP_ID --chip_id $CHIP_ID --class_id $CLASS_ID --uri $URI --camera $CAMERA $ARGS
+    command chip_imfile.pl --exp_id $EXP_ID --chip_id $CHIP_ID --class_id $CLASS_ID --uri $URI --camera $CAMERA --workdir $outroot $ARGS
   end
 
