From 2e1718b188b4493ac767f0a1d08c7ce1a18fadde Mon Sep 17 00:00:00 2001 From: benoitc Date: Sun, 11 Apr 2010 17:53:38 +0200 Subject: [PATCH] use globals in config --- gunicorn/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gunicorn/config.py b/gunicorn/config.py index 66edb1ba..8a7171de 100644 --- a/gunicorn/config.py +++ b/gunicorn/config.py @@ -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,))