mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-04-29 20:20:42 +00:00
windows module loader fix
This commit is contained in:
parent
66025b482a
commit
d321635584
1 changed files with 1 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ def load_classes_from_folder(folder: str, name_pattern: str, base_class: Type[T]
|
|||
# Iterate through the sorted list of files
|
||||
for 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_name
|
||||
module = importlib.import_module(module_path)
|
||||
|
||||
# Get all classes in the module
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue