IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 18, 2007, 2:15:22 PM (19 years ago)
Author:
jhoblitt
Message:

add basic workdir support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/pxinject.c

    r11047 r11138  
    116116    if (!imfiles) {
    117117        psError(PS_ERR_UNKNOWN, true, "-imfiles is required");
     118        return false;
     119    }
     120
     121    psString workdir = psMetadataLookupStr(&status, config->args, "-workdir");
     122    if (!status) {
     123        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -workdir");
     124        return false;
     125    }
     126    if (!workdir) {
     127        psError(PS_ERR_UNKNOWN, true, "-workdir is required");
    118128        return false;
    119129    }
     
    148158                dateobs,
    149159                exp_type,
    150                 imfiles
     160                imfiles,
     161                workdir
    151162            )
    152163        ) {
Note: See TracChangeset for help on using the changeset viewer.