Little fix for static files in index.py
This commit is contained in:
parent
c8f1c7629b
commit
ffb541ead2
1 changed files with 8 additions and 2 deletions
|
|
@ -48,9 +48,15 @@ module_loaded=None
|
|||
|
||||
for module in config.modules:
|
||||
|
||||
module=module.replace('.', '/')
|
||||
controller_path=load(module)
|
||||
|
||||
controller_base=os.path.dirname(controller_path.__file__)
|
||||
|
||||
controller_base=os.path.basename(module)
|
||||
base_module=module.split('.')[-1]
|
||||
|
||||
arr_module_path[base_module]=controller_base
|
||||
|
||||
dir_controllers=os.listdir(controller_base)
|
||||
|
||||
add_func_static_module(controller_base)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue