IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 27, 2013, 5:58:25 AM (13 years ago)
Author:
eugene
Message:

enable test mode from command-line (-test, after jython module); add parallel dvo option; make database selection more consistent and variable on test/not-test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20121219/ippToPsps/jython/ipptopsps.py

    r34970 r35063  
    2222    '''
    2323    def __init__(self, argv, logToStdout=1, logToFile=0):
     24
     25        testmode = False
     26        for arg in sys.argv:
     27            if arg == "-test":
     28                testmode = True
     29                sys.argv.remove(arg)
     30            if arg == "-t":
     31                testmode = True
     32                sys.argv.remove(arg)
    2433
    2534        # are the arsg ok? all programs require a config name
     
    5160        # set up config object
    5261        self.config = Config(self.PROGNAME, CONFIGNAME, self.configDir)
     62        self.config.test = testmode
     63
     64        if self.config.test: print "using test mode"
     65        else: print "not using test mode"
     66
    5367        self.logger = self.config.getLogger(self.HOST, self.PID, logToStdout, logToFile)
    5468
Note: See TracChangeset for help on using the changeset viewer.