IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34991


Ignore:
Timestamp:
Jan 19, 2013, 6:56:38 AM (13 years ago)
Author:
eugene
Message:

set configdir and load batch init tables from configdir

File:
1 edited

Legend:

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

    r34926 r34991  
    4949        self.logger.debug("Batch class constructor")
    5050
     51        self.configDir = os.getenv("IPPTOPSPS_DATA")
     52        if self.configDir is not None:
     53            self.configDir = self.configDir + "/"
     54
    5155        # set up class variables
    5256        self.id = id
     
    5660        self.scratchDb = scratchDb
    5761        self.batchType = batchType;
    58         self.pspsVoTableFilePath = "../config/" + batchType + "/tables.vot"
     62        self.pspsVoTableFilePath = self.configDir + "tables." + batchType + ".vot"
    5963
    6064        # check FITS file is ok
Note: See TracChangeset for help on using the changeset viewer.