mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
fix(skills): follow symlinks in iter_skill_index_files
os.walk() by default does not follow symlinks, causing skills linked via symlinks to be invisible to the skill discovery system. Add followlinks=True so that symlinked skill directories are scanned.
This commit is contained in:
parent
b9463e32c6
commit
02aba4a728
1 changed files with 1 additions and 1 deletions
|
|
@ -435,7 +435,7 @@ def iter_skill_index_files(skills_dir: Path, filename: str):
|
|||
Excludes ``.git``, ``.github``, ``.hub`` directories.
|
||||
"""
|
||||
matches = []
|
||||
for root, dirs, files in os.walk(skills_dir):
|
||||
for root, dirs, files in os.walk(skills_dir, followlinks=True):
|
||||
dirs[:] = [d for d in dirs if d not in EXCLUDED_SKILL_DIRS]
|
||||
if filename in files:
|
||||
matches.append(Path(root) / filename)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue