Index: trunk/ippScripts/scripts/phase0_imfile.pl
===================================================================
--- trunk/ippScripts/scripts/phase0_imfile.pl	(revision 9098)
+++ trunk/ippScripts/scripts/phase0_imfile.pl	(revision 9166)
@@ -11,4 +11,8 @@
 use PS::IPP::Metadata::Stats;
 use Data::Dumper;
+
+use PS::IPP::Config;
+my $ipprc = PS::IPP::Config->new(); # IPP configuration
+use File::Spec;
 
 use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt );
@@ -31,7 +35,4 @@
     and defined $class_id 
     and defined $uri;
-
-# XXX the uri should be processed either here or by ppImage
-my $file = $uri;
 
 use constant RECIPE => "PPSTATS_PHASE0"; # Recipe to use for ppStats
@@ -72,8 +73,11 @@
 die "Can't find required tools.\n" if $missing_tools;
 
+# Resolve the input URI
+$uri = File::Spec->rel2abs( $uri, $ipprc->workdir() );
+
 # Run ppStats on the input file
 my $stats;
 {
-    my $command = "$ppStats $file -recipe PPSTATS " . RECIPE; # Command to run ppStats
+    my $command = "$ppStats $uri -recipe PPSTATS " . RECIPE; # Command to run ppStats
     my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
         run(command => $command, verbose => 1);
