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
@ -60,9 +60,9 @@ class Config(object):
|
|||||||
if not os.path.exists(self.config_file):
|
if not os.path.exists(self.config_file):
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
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