windows module loader fix

frdel committed Sep 30, 2024 at 08:44 UTC d321635584989c86ebca1f46e23490774e933eed
1 file changed +1 -1
python/helpers/extract_tools.py
+1 -1
@@ -66,7 +66,7 @@ def load_classes_from_folder(folder: str, name_pattern: str, base_class: Type[T]
66 # Iterate through the sorted list of files
67 for file_name in py_files:
68 module_name = file_name[:-3] # remove .py extension
69 - module_path = folder.replace(os.sep, ".") + "." + module_name
69 + module_path = folder.replace("/", ".") + "." + module_name
70 module = importlib.import_module(module_path)
71
72 # Get all classes in the module