use globals in config

This commit is contained in:
benoitc 2010-04-11 17:53:38 +02:00
parent 5ebdd48eed
commit 2e1718b188

View File

@ -60,9 +60,9 @@ class Config(object):
if not os.path.exists(self.config_file):
return {}
config = {}
config = {}
try:
execfile(self.config_file, config)
execfile(self.config_file, globals(), config)
except:
sys.exit("Could not read config file %r" % (self.config_file,))