Changeset 545 for trunk/daemon/orbited/config.py

Show
Ignore:
Timestamp:
09/20/08 15:44:51 (4 months ago)
Author:
rgl
Message:

Merge the 0.7 branch into trunk.

For now on, trunk will contain the bleeding-edge version of Orbited.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/daemon/orbited/config.py

    r488 r545  
    5050    return True 
    5151 
    52 def setup(argv): 
     52defaultPaths = [ 
     53    os.path.join('/', 'etc', 'orbited.cfg'), 
     54    os.path.join('/', 'Program Files', 'Orbited', 'etc', 'orbited.cfg'), 
     55    'orbited.cfg', 
     56] 
     57 
     58def setup(argv, paths=defaultPaths): 
    5359    parser = OptionParser() 
    5460    parser.add_option( 
     
    6773    if not options.config: 
    6874        # no config file specified, try to search it. 
    69         paths = [ 
    70             os.path.join('/', 'etc', 'orbited.cfg'), 
    71             os.path.join('/', 'Program Files', 'Orbited', 'etc', 'orbited.cfg'), 
    72             'orbited.cfg', 
    73         ] 
    7475        for path in paths: 
    7576            if os.path.exists(path):