Edgewall Software

Ticket #1051: centralini.diff

File centralini.diff, 612 bytes (added by Manuzhai, 7 years ago)

Patch that adds a CENTRAL_CONFIG var.

  • .py

    old new  
    2222# Todo: Move backup and upgrade from db.py 
    2323# 
    2424 
     25CENTRAL_CONFIG = '/etc/trac.ini' 
     26 
    2527import os 
    2628import sys 
    2729import time 
     
    165167 
    166168    def load_config(self): 
    167169        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')]) 
    169171 
    170172    def get_config(self, section, name, default=''): 
    171173        if not self.cfg.has_option(section, name):