IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 1, 2006, 3:05:04 PM (20 years ago)
Author:
Paul Price
Message:

Updating to use psModules head --- pmConfigRead changed, and pmConfigDB

File:
1 edited

Legend:

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

    r6978 r7027  
    1212    }
    1313
    14     if (! pmConfigRead(&config->site, &config->camera, &config->recipe, &argc, argv, RECIPE)) {
     14    config->modules = pmConfigRead(&argc, argv);
     15
     16    if (! config->modules) {
    1517        psError(PS_ERR_UNKNOWN, false, "Can't find site configuration!\n");
    1618        exit(EXIT_FAILURE);
     
    4042        config->mode = PX_MODE_COPYDONE;
    4143    }
    42    
    43     // paul's argument parsing convention requires: -key value 
     44
     45    // paul's argument parsing convention requires: -key value
    4446    // Parse other command-line arguments
    4547    psMetadata *args = psMetadataAlloc();
     
    127129
    128130    // define Database handle, if used
    129     config->dbh = pmConfigDB(config->site);
     131    config->dbh = pmConfigDB(config->modules);
    130132
    131133    return config;
    132 } 
     134}
Note: See TracChangeset for help on using the changeset viewer.