Ticket #1051: centralini.diff
| File centralini.diff, 612 bytes (added by Manuzhai, 7 years ago) |
|---|
-
.py
old new 22 22 # Todo: Move backup and upgrade from db.py 23 23 # 24 24 25 CENTRAL_CONFIG = '/etc/trac.ini' 26 25 27 import os 26 28 import sys 27 29 import time … … 165 167 166 168 def load_config(self): 167 169 self.cfg = ConfigParser.ConfigParser() 168 self.cfg.read( os.path.join(self.path, 'conf', 'trac.ini'))170 self.cfg.read([CENTRAL_CONFIG, os.path.join(self.path, 'conf', 'trac.ini')]) 169 171 170 172 def get_config(self, section, name, default=''): 171 173 if not self.cfg.has_option(section, name):
