Changeset 872 for pykota/trunk/pykota/config.py
- Timestamp:
- 03/29/03 14:08:28 (21 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/config.py
r854 r872 15 15 # 16 16 # $Log$ 17 # Revision 1.20 2003/03/29 13:08:28 jalet 18 # Configuration is now expected to be found in /etc/pykota.conf instead of 19 # in /etc/cups/pykota.conf 20 # Installation script can move old config files to the new location if needed. 21 # Better error handling if configuration file is absent. 22 # 17 23 # Revision 1.19 2003/03/16 09:56:52 jalet 18 24 # Mailto option now accepts some additional values which all mean that … … 108 114 """Reads and checks the configuration file.""" 109 115 self.filename = os.path.join(directory, "pykota.conf") 116 if not os.path.isfile(self.filename) : 117 raise PyKotaConfigError, _("Configuration file %s not found.") % self.filename 110 118 self.config = ConfigParser.ConfigParser() 111 119 self.config.read([self.filename])