Index: /branches/pap_branch_080320/ippScripts/scripts/detrend_stack.pl
===================================================================
--- /branches/pap_branch_080320/ippScripts/scripts/detrend_stack.pl	(revision 17164)
+++ /branches/pap_branch_080320/ippScripts/scripts/detrend_stack.pl	(revision 17165)
@@ -93,5 +93,5 @@
 		  'FRINGE'   => 'PPMERGE.OUTPUT.FRINGE',
 	      };
-my $output_filerule = $FILERULES{$det_type}; # File rule for output
+my $output_filerule = $FILERULES->{$det_type}; # File rule for output
 &my_die("Unrecognised detrend type: $det_type", $det_id, $iter, $class_id, $PS_EXIT_SYS_ERROR) unless defined $output_filerule;
 
@@ -128,5 +128,5 @@
 
 # Generate MDC file with the inputs
-my ($listFile, $listName) = tempfile( "$outroot.$class_id.list.XXXX", UNLINK => !$save_temps );
+my ($listFile, $listName) = tempfile( $ipprc->file_resolve("$outroot.$class_id.list.XXXX"), UNLINK => !$save_temps );
 my $num = 0;
 foreach my $file (@$files) {
