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)
|
||||
|
||||
if '/' in args.model:
|
||||
|
||||
args.model=args.model.replace('/', '.').replace('.py', '')
|
||||
|
||||
try:
|
||||
|
||||
model=import_module(args.model)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue