Dot character has special meaning in module names
Therefore we esacpe it using the underscore character.
This commit is contained in:
parent
20820e10c2
commit
16b567939c
@ -53,7 +53,7 @@ with scandir(_CONFIG_DIR) as it:
|
||||
if f.name == f'{_MAIN_CONFIG}.py':
|
||||
continue
|
||||
|
||||
module_name = f"{_MODULE}.{f.name[:-len('.py')]}"
|
||||
module_name = f"{_MODULE}.{f.name[:-len('.py')]}".replace(".", "_")
|
||||
|
||||
_import(module_name, f.path)
|
||||
|
||||
|
@ -53,7 +53,7 @@ with scandir(_CONFIG_DIR) as it:
|
||||
if f.name == f'{_MAIN_CONFIG}.py':
|
||||
continue
|
||||
|
||||
module_name = f"{_MODULE}.{f.name[:-len('.py')]}"
|
||||
module_name = f"{_MODULE}.{f.name[:-len('.py')]}".replace(".", "_")
|
||||
|
||||
_import(module_name, f.path)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user