IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 4, 2006, 11:51:33 AM (19 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/ppFocusArguments.c

    r8751 r10439  
    1818
    1919    // load the site-wide configuration information
    20     pmConfig *config = pmConfigRead(&argc, argv);
     20    pmConfig *config = pmConfigRead(&argc, argv, RECIPE_NAME);
    2121    if (config == NULL) {
    2222        psErrorStackPrint(stderr, "Can't find site configuration!\n");
     
    2424    }
    2525
     26    // save the following additional recipe values based on command-line options
     27    // these options override the PPIMAGE recipe values loaded from recipe files
     28    psMetadata *options = pmConfigRecipeOptions (config, RECIPE_NAME);
     29
    2630    // save these recipe options until we have loaded the options
    27     psMetadata *options = psMetadataAlloc ();
    28     psMetadataAddPtr (config->arguments, PS_LIST_TAIL, "PPIMAGE.OPTIONS",  PS_DATA_METADATA, "", options);
     31    // psMetadata *options = psMetadataAlloc ();
     32    // psMetadataAddPtr (config->arguments, PS_LIST_TAIL, "PPIMAGE.OPTIONS",  PS_DATA_METADATA, "", options);
    2933
    3034    // the following options override the PPIMAGE recipe options
Note: See TracChangeset for help on using the changeset viewer.