~gary-lasker/software-center/christhehorton-reviews-crash-fix-lp912855

« back to all changes in this revision

Viewing changes to softwarecenter/backend/config.py

merged the reviews branch into trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
        os.rename(tmpname, self.configfile)
41
41
    
42
42
_software_center_config = None    
43
 
def get_config():
 
43
def get_config(filename=SOFTWARE_CENTER_CONFIG_FILE):
44
44
    """ get the global config class """
45
45
    global _software_center_config
46
46
    if not _software_center_config:
47
 
        _software_center_config = SoftwareCenterConfig(SOFTWARE_CENTER_CONFIG_FILE)
 
47
        _software_center_config = SoftwareCenterConfig(filename)
48
48
    return _software_center_config
49
49