Show
Ignore:
Timestamp:
03/29/03 14:08:28 (21 years ago)
Author:
jalet
Message:

Configuration is now expected to be found in /etc/pykota.conf instead of
in /etc/cups/pykota.conf
Installation script can move old config files to the new location if needed.
Better error handling if configuration file is absent.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/config.py

    r854 r872  
    1515# 
    1616# $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# 
    1723# Revision 1.19  2003/03/16 09:56:52  jalet 
    1824# Mailto option now accepts some additional values which all mean that 
     
    108114        """Reads and checks the configuration file.""" 
    109115        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 
    110118        self.config = ConfigParser.ConfigParser() 
    111119        self.config.read([self.filename])