mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Use split (not rsplit) to separate MOD:APP info.
This commit is contained in:
parent
fc300cc23c
commit
7ffa097cf7
@ -219,7 +219,7 @@ def normalize_name(name):
|
|||||||
return "-".join([w.lower().capitalize() for w in name.split("-")])
|
return "-".join([w.lower().capitalize() for w in name.split("-")])
|
||||||
|
|
||||||
def import_app(module):
|
def import_app(module):
|
||||||
parts = module.rsplit(":", 1)
|
parts = module.split(":", 1)
|
||||||
if len(parts) == 1:
|
if len(parts) == 1:
|
||||||
module, obj = module, "application"
|
module, obj = module, "application"
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user