Changeset 34970

Show
Ignore:
Timestamp:
01/18/2013 10:21:24 AM (6 years ago)
Author:
eugene
Message:

strip absolute path from classfile (eg, queue.py), add / to end of configDir (if not None); pass configDir to Config

Files:
1 modified

Legend:

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

    r33790 r34970  
    2727            self.printUsage() 
    2828            self.exitProgram("Wrong args") 
    29              
     29 
    3030        # some class constants 
    31         self.PROGNAME = sys.argv[0] 
     31        self.PROGNAME = os.path.basename(sys.argv[0]) 
    3232        CONFIGNAME = sys.argv[1] 
    3333        self.HOST = socket.gethostname() 
     
    3737        self.MINUTES = None 
    3838        self.SECONDS = None 
     39 
     40        self.configDir = os.getenv("IPPTOPSPS_DATA") 
     41        if self.configDir is not None: 
     42            self.configDir = self.configDir + "/" 
    3943 
    4044        self.createNewConfig = False 
     
    4650 
    4751        # set up config object 
    48         self.config = Config(self.PROGNAME, CONFIGNAME) 
     52        self.config = Config(self.PROGNAME, CONFIGNAME, self.configDir) 
    4953        self.logger = self.config.getLogger(self.HOST, self.PID, logToStdout, logToFile) 
    5054