Changeset 20:bf238ca0c37f in mailjam for mailjam/config.py
- Timestamp:
- May 22, 2012, 1:28:15 PM (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mailjam/config.py
r16 r20 42 42 'mailing_lists', 'members'] 43 43 44 def validate_configfile(self): 44 def validate_configfile(self): 45 45 if self.configfile: 46 # ensure we have the full path to the provided file 47 self.configfile = os.path.join(os.path.dirname(__file__), 48 self.configfile) 46 49 if not os.path.exists(self.configfile): 47 50 # the file does not exist, so we override it with None, … … 49 52 # config file on the usual places 50 53 self.configfile = None 54 else: 55 return self.configfile 51 56 52 57 if not self.configfile: … … 56 61 self.configfile = full_path 57 62 return full_path 58 63 59 64 # if we reach here, self.configfile will be still None, no valid 60 65 # config files were found, and so we raise an exception
Note:
See TracChangeset
for help on using the changeset viewer.