IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 12, 2007, 5:01:10 PM (19 years ago)
Author:
Paul Price
Message:

Updating directory names, output file names.

File:
1 edited

Legend:

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

    r12352 r12421  
    125125}
    126126
     127# Set output directory
    127128if (defined $workdir) {
    128129    $workdir = $ipprc->convert_filename_absolute( $workdir );
     130    $workdir = File::Spec->catdir( $workdir, $exp_id );
    129131} else {
    130     my $example = ${$files}[0]->{path_base}; # Example original root name
    131     my ($vol, $dir, $file) = File::Spec->splitpath( $ipprc->convert_filename_absolute( $example ) );
     132    my $example = $ipprc->convert_filename_absolute( ${$files}[0]->{path_base}) ; # Example original name
     133    my ($vol, $dir, $file) = File::Spec->splitpath( $example );
    132134    $workdir = $dir;
    133135}
    134 
    135 $workdir = File::Spec->catfile( $workdir, $exp_id );
    136136system "mkdir -p $workdir" unless -d $workdir;
    137137
Note: See TracChangeset for help on using the changeset viewer.