mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
prevent call get_default_config_file if args.config exists
This commit is contained in:
parent
cf6e765323
commit
c218792fa4
@ -83,12 +83,12 @@ class Application(object):
|
||||
for k, v in cfg.items():
|
||||
self.cfg.set(k.lower(), v)
|
||||
|
||||
default_config = get_default_config_file()
|
||||
|
||||
if args.config:
|
||||
self.load_config_from_file(args.config)
|
||||
elif default_config is not None:
|
||||
self.load_config_from_file(default_config)
|
||||
else:
|
||||
default_config = get_default_config_file()
|
||||
if default_config is not None:
|
||||
self.load_config_from_file(default_config)
|
||||
|
||||
# Lastly, update the configuration with any command line
|
||||
# settings.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user