mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Load app after the configuration.
This allows for affecting system variables like sys.path before import searches for the application. Fixes issue #44.
This commit is contained in:
parent
2c5f221d1a
commit
999dd68ca3
@ -67,8 +67,8 @@ def main(usage, get_app):
|
||||
parser = op.OptionParser(usage=usage, option_list=options(), version=vrs)
|
||||
opts, args = parser.parse_args()
|
||||
|
||||
app = get_app(parser, opts, args)
|
||||
cfg = Config(opts.__dict__, opts.config)
|
||||
app = get_app(parser, opts, args)
|
||||
if cfg.spew:
|
||||
spew()
|
||||
if cfg.daemon:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user