use globals in config

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

View File

@ -62,7 +62,7 @@ class Config(object):
config = {} config = {}
try: try:
execfile(self.config_file, config) execfile(self.config_file, globals(), config)
except: except:
sys.exit("Could not read config file %r" % (self.config_file,)) sys.exit("Could not read config file %r" % (self.config_file,))