Mercurial > libervia-backend
comparison src/tools/memory.py @ 369:e83d0c21d64d
launching script now read config files
added ./sat.conf in possible config file location
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 19 Jun 2011 17:40:36 +0200 |
parents | efbfccfed623 |
children | 20f11097d99b |
comparison
equal
deleted
inserted
replaced
368:d9499d27f884 | 369:e83d0c21d64d |
---|---|
408 | 408 |
409 def parseMainConf(self): | 409 def parseMainConf(self): |
410 """look for main .ini configuration file, and parse it""" | 410 """look for main .ini configuration file, and parse it""" |
411 _config = SafeConfigParser(defaults=default_config) | 411 _config = SafeConfigParser(defaults=default_config) |
412 try: | 412 try: |
413 _config.read(map(os.path.expanduser, ['/etc/sat.conf', '~/sat.conf', '~/.sat.conf', '.sat.conf'])) | 413 _config.read(map(os.path.expanduser, ['/etc/sat.conf', '~/sat.conf', '~/.sat.conf', 'sat.conf', '.sat.conf'])) |
414 except: | 414 except: |
415 error (_("Can't read main config !")) | 415 error (_("Can't read main config !")) |
416 | 416 |
417 return _config | 417 return _config |
418 | 418 |