pathlib support

This commit is contained in:
2023-06-23 11:17:02 +02:00
parent 88d8a38444
commit 23467a88ef
4 changed files with 11 additions and 11 deletions

View File

@@ -37,7 +37,7 @@ def dynamic_import(module_name, py_path):
def dynamic_import_from_src(src, star_import=False):
my_py_files = get_py_files(src)
for py_file in my_py_files:
module_name = path.split(py_file)[-1][:-3]
module_name = Path(py_file).stem
print(f"Importing {module_name} extension...", flush=True)
imported_module = dynamic_import(module_name, py_file)
if imported_module != None: