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/regtoolConfig.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);
     
    3335        config->mode = PX_MODE_UPDATE;
    3436    }
    35    
    36     // paul's argument parsing convention requires: -key value 
     37
     38    // paul's argument parsing convention requires: -key value
    3739    // Parse other command-line arguments
    3840    psMetadata *args = psMetadataAlloc();
     
    191193
    192194    // define Database handle, if used
    193     config->dbh = pmConfigDB(config->site);
     195    config->dbh = pmConfigDB(config->modules);
    194196
    195197    return true;
    196 } 
     198}
Note: See TracChangeset for help on using the changeset viewer.