mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
parent
1e5948e1c8
commit
c31e0f9ac7
@ -53,7 +53,10 @@ class Application(object):
|
|||||||
self.cfg.set(k.lower(), v)
|
self.cfg.set(k.lower(), v)
|
||||||
|
|
||||||
# Load up the config file if its found.
|
# Load up the config file if its found.
|
||||||
if args.config and os.path.exists(args.config):
|
if args.config:
|
||||||
|
if not os.path.exists(args.config):
|
||||||
|
raise RuntimeError("%r doesn't exist" % args.config)
|
||||||
|
|
||||||
cfg = {
|
cfg = {
|
||||||
"__builtins__": __builtins__,
|
"__builtins__": __builtins__,
|
||||||
"__name__": "__config__",
|
"__name__": "__config__",
|
||||||
|
|||||||
@ -84,8 +84,6 @@ class Config(object):
|
|||||||
for k in keys:
|
for k in keys:
|
||||||
self.settings[k].add_option(parser)
|
self.settings[k].add_option(parser)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return parser
|
return parser
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user