rename conf file section as 'client'. add gui to conf

This commit is contained in:
ThomasV 2012-10-11 21:07:49 +02:00
parent 5444f55e6b
commit f0556bb0d3
1 changed files with 6 additions and 2 deletions

View File

@ -102,11 +102,15 @@ class SimpleConfig:
p = ConfigParser.ConfigParser()
p.read(name)
try:
self.common_config['server'] = p.get('interface','server')
self.common_config['server'] = p.get('client','server')
except:
pass
try:
self.common_config['proxy'] = parse_proxy_options(p.get('interface','proxy'))
self.common_config['proxy'] = parse_proxy_options(p.get('client','proxy'))
except:
pass
try:
self.common_config['gui'] = p.get('client','gui')
except:
pass
break