MCPcopy
hub / github.com/agent0ai/agent-zero / _normalize_active_skill_path

Function _normalize_active_skill_path

helpers/skills.py:1251–1257  ·  view source on GitHub ↗
(path: str)

Source from the content-addressed store, hash-verified

1249
1250
1251def _normalize_active_skill_path(path: str) -> str:
1252 fixed = path.strip().replace("\\", "/")
1253 if fixed.startswith("/a0/"):
1254 return fixed.rstrip("/")
1255 if fixed.startswith("/"):
1256 return files.normalize_a0_path(fixed).rstrip("/")
1257 return files.normalize_a0_path(files.get_abs_path(fixed)).rstrip("/")
1258
1259
1260def _entry_key(entry: ActiveSkillEntry) -> str:

Callers 1

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected