IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 18, 2013, 10:22:19 AM (13 years ago)
Author:
eugene
Message:

accept configDir argument; set settings directory unless using old-style local path

File:
1 edited

Legend:

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

    r33728 r34971  
    1919    Basically reads the entire config and stores values to class variables
    2020    '''
    21     def __init__(self, programName, name):
     21    def __init__(self, programName, name, configDir):
    2222
    2323        self.programName = programName
    2424        self.name = name
    25         self.settingsPath = "../config/settings.xml" # TODO
     25        self.configDir = configDir
     26
     27        # self.configdir is set in ipptopsps.jy on init based on env(IPPTOPSPS_DATA)
     28        if self.configDir is None:
     29          self.settingsPath = "../config/settings.xml" # TODO
     30        else:
     31          self.settingsPath = self.configDir + "settings.xml"
     32
    2633        self.logger = None
    2734
Note: See TracChangeset for help on using the changeset viewer.