mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-01 05:00:34 +00:00
fix: plugin prompts search path resolution
This commit is contained in:
parent
fcdb6285cf
commit
8e752900c6
1 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue