IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 4, 2006, 11:51:33 AM (20 years ago)
Author:
eugene
Message:

updated to new pmConfigRead, added PSPHOT_RECIPE and PSASTRO_RECIPE, new option lookup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppImageArguments.c

    r10209 r10439  
    3434
    3535    // load the site-wide configuration information
    36     pmConfig *config = pmConfigRead(&argc, argv);
     36    pmConfig *config = pmConfigRead(&argc, argv, RECIPE_NAME);
    3737    if (config == NULL) {
    3838        psErrorStackPrint(stderr, "Can't find site configuration!\n");
     
    4040    }
    4141
     42    // save the following additional recipe values based on command-line options
     43    // these options override the PPIMAGE recipe values loaded from recipe files
     44    psMetadata *options = pmConfigRecipeOptions (config, RECIPE_NAME);
     45
    4246    // save these recipe options until we have loaded the options
    43     psMetadata *options = psMetadataAlloc ();
    44     psMetadataAddPtr (config->arguments, PS_LIST_TAIL, "PPIMAGE.OPTIONS",  PS_DATA_METADATA, "", options);
     47    // psMetadata *options = psMetadataAlloc ();
     48    // psMetadataAddPtr (config->arguments, PS_LIST_TAIL, "PPIMAGE.OPTIONS",  PS_DATA_METADATA, "", options);
    4549
    4650    if ((argnum = psArgumentGet(argc, argv, "-stat"))) {
Note: See TracChangeset for help on using the changeset viewer.