Browse Source

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

283
ThomasV 12 years ago
parent
commit
f0556bb0d3
  1. 8
      lib/simple_config.py

8
lib/simple_config.py

@ -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

Loading…
Cancel
Save