Fix in modules loading
This commit is contained in:
parent
f993143936
commit
91b7bc6f79
1 changed files with 8 additions and 2 deletions
|
|
@ -83,6 +83,11 @@ def start_app():
|
|||
|
||||
app_name=getattr(controller_path, added_app[1])
|
||||
|
||||
#print(os.path.dirname(sys.modules[added_app[0]].__file__))
|
||||
#print(key_app)
|
||||
|
||||
arr_module_path[key_app]=os.path.dirname(sys.modules[added_app[0]].__file__)
|
||||
|
||||
for controller in dir_controllers:
|
||||
|
||||
if controller.find('.py')!=-1 and controller.find('__init__')==-1:
|
||||
|
|
@ -93,7 +98,8 @@ def start_app():
|
|||
|
||||
a=import_module(module_app)
|
||||
|
||||
arr_module_path[key_app]=os.path.dirname(sys.modules[module_app].__file__)
|
||||
#arr_module_path[key_app]=os.path.dirname(sys.modules[module_app].__file__)
|
||||
|
||||
if config.application_root=='/':
|
||||
app.register_blueprint(app_name, url_prefix=added_app[2])
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue