Agent Zero AI framework
windows module loader fix
frdeld32163558498
diff --git a/python/helpers/extract_tools.py b/python/helpers/extract_tools.pyindex e061ebfc2..26785bc69 100644--- a/python/helpers/extract_tools.py+++ b/python/helpers/extract_tools.py@@ -66,7 +66,7 @@ def load_classes_from_folder(folder: str, name_pattern: str, base_class: Type[T]# Iterate through the sorted list of filesfor file_name in py_files:module_name = file_name[:-3] # remove .py extension- module_path = folder.replace(os.sep, ".") + "." + module_name+ module_path = folder.replace("/", ".") + "." + module_namemodule = importlib.import_module(module_path)# Get all classes in the module