Skip to content

Agent Zero AI framework

fix: plugin prompts search path resolution

keyboardstaff8e752900c62e
diff --git a/python/helpers/subagents.py b/python/helpers/subagents.py
index 6690d59ad..189654d7f 100644
--- a/python/helpers/subagents.py
+++ b/python/helpers/subagents.py
@@ -400,7 +400,10 @@ def get_paths(
from python.helpers import plugins
for plugin in plugins.get_plugins_list():
- path = files.get_abs_path(plugin, *subpaths)
+ plugin_dir = plugins.find_plugin_dir(plugin)
+ if not plugin_dir:
+ continue
+ path = os.path.join(plugin_dir, *subpaths)
if (not must_exist_completely) or files.exists(path):
if path not in paths:
paths.append(path)