mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
use globals in config
This commit is contained in:
parent
5ebdd48eed
commit
2e1718b188
@ -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,))
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user