IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 3, 2006, 3:44:37 PM (20 years ago)
Author:
Paul Price
Message:

Adding path support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/phase0_imfile.pl

    r9098 r9166  
    1111use PS::IPP::Metadata::Stats;
    1212use Data::Dumper;
     13
     14use PS::IPP::Config;
     15my $ipprc = PS::IPP::Config->new(); # IPP configuration
     16use File::Spec;
    1317
    1418use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt );
     
    3135    and defined $class_id
    3236    and defined $uri;
    33 
    34 # XXX the uri should be processed either here or by ppImage
    35 my $file = $uri;
    3637
    3738use constant RECIPE => "PPSTATS_PHASE0"; # Recipe to use for ppStats
     
    7273die "Can't find required tools.\n" if $missing_tools;
    7374
     75# Resolve the input URI
     76$uri = File::Spec->rel2abs( $uri, $ipprc->workdir() );
     77
    7478# Run ppStats on the input file
    7579my $stats;
    7680{
    77     my $command = "$ppStats $file -recipe PPSTATS " . RECIPE; # Command to run ppStats
     81    my $command = "$ppStats $uri -recipe PPSTATS " . RECIPE; # Command to run ppStats
    7882    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    7983        run(command => $command, verbose => 1);
Note: See TracChangeset for help on using the changeset viewer.