Ignore:
Timestamp:
03/04/07 22:50:55 (13 years ago)
Author:
lawrence
Message:

Improved handling of deployments in browse.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI07-MOLES/trunk/PythonCode/wsgi/Utilities.py

    r2097 r2379  
    1616import logging 
    1717 
    18 __NOCONFIG='Missing Config File' 
    19  
    2018class myConfig: 
    2119     
     
    2523   def __init__(self,configfile,logName='NDGLOG'): 
    2624       self.config=ConfigParser.ConfigParser() 
    27        if not os.path.exists(configfile): raise __NOCONFIG, configfile 
     25       if not os.path.exists(configfile):  
     26           raise ValueError("Config file doesn't exist [%s]"%configfile) 
    2827       self.config.read(configfile) 
    2928       logfile=self.get('logging','debugLog',None) 
Note: See TracChangeset for help on using the changeset viewer.