Index: trunk/ippScripts/scripts/diff_skycell.pl
===================================================================
--- trunk/ippScripts/scripts/diff_skycell.pl	(revision 13711)
+++ trunk/ippScripts/scripts/diff_skycell.pl	(revision 13712)
@@ -80,6 +80,6 @@
 
 # Identify the input and the template
-my $input, $inputMask;		# Input file and mask
-my $template, $templateMask;	# Template file and mask
+my ($input, $inputPath);	# Input file and path
+my ($template, $templatePath);	# Template file and path
 my $tess_id;			# Tesselation identifier
 my $skycell_id;			# Skycell identifier
@@ -88,8 +88,8 @@
     if (defined $file->{template} and $file->{template}) {
 	$template = $file->{uri};
-	$templateMask = $ipprc->filename("PSWARP.OUTPUT.MASK", $file->{path_base});
+	$templatePath = $file->{path_base};
     } else {
 	$input = $file->{uri};
-	$inputMask = $ipprc->filename("PSWARP.OUTPUT.MASK", $file->{path_base});
+	$inputPath = $file->{path_base};
     }
     if (defined $tess_id) {
@@ -117,8 +117,11 @@
 $ipprc->define_camera($camera);
 
+my $templateMask = $ipprc->filename("PSWARP.OUTPUT.MASK", $templatePath);
+my $inputMask = $ipprc->filename("PSWARP.OUTPUT.MASK", $inputPath);
+
 &my_die("Couldn't find input: $template", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($template);
 &my_die("Couldn't find input: $templateMask", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($templateMask);
-&my_die("Couldn't find input: $nput", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($input);
-&my_die("Couldn't find input: $nputMask", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($inputMask);
+&my_die("Couldn't find input: $input", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($input);
+&my_die("Couldn't find input: $inputMask", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($inputMask);
 
 # Get the output filenames
