launching script now read config files

added ./sat.conf in possible config file location
This commit is contained in:
Goffi 2011-06-19 17:40:36 +02:00
commit e4586d5a07

View file

@ -410,7 +410,7 @@ class Memory:
"""look for main .ini configuration file, and parse it"""
_config = SafeConfigParser(defaults=default_config)
try:
_config.read(map(os.path.expanduser, ['/etc/sat.conf', '~/sat.conf', '~/.sat.conf', '.sat.conf']))
_config.read(map(os.path.expanduser, ['/etc/sat.conf', '~/sat.conf', '~/.sat.conf', 'sat.conf', '.sat.conf']))
except:
error (_("Can't read main config !"))