Changeset 545 for trunk/daemon/orbited/config.py
- Timestamp:
- 09/20/08 15:44:51 (4 months ago)
- Files:
-
- 1 modified
-
trunk/daemon/orbited/config.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/daemon/orbited/config.py
r488 r545 50 50 return True 51 51 52 def setup(argv): 52 defaultPaths = [ 53 os.path.join('/', 'etc', 'orbited.cfg'), 54 os.path.join('/', 'Program Files', 'Orbited', 'etc', 'orbited.cfg'), 55 'orbited.cfg', 56 ] 57 58 def setup(argv, paths=defaultPaths): 53 59 parser = OptionParser() 54 60 parser.add_option( … … 67 73 if not options.config: 68 74 # 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 ]74 75 for path in paths: 75 76 if os.path.exists(path):