Little fix in dbadmin for use normal paths for load the model
This commit is contained in:
parent
88404d88ad
commit
946a4909ef
1 changed files with 4 additions and 0 deletions
|
|
@ -45,6 +45,10 @@ def start():
|
||||||
|
|
||||||
#print(WebModel.connections)
|
#print(WebModel.connections)
|
||||||
|
|
||||||
|
if '/' in args.model:
|
||||||
|
|
||||||
|
args.model=args.model.replace('/', '.').replace('.py', '')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
||||||
model=import_module(args.model)
|
model=import_module(args.model)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue