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

Function fix_dev_path

helpers/files.py:601–608  ·  view source on GitHub ↗

On dev environment, convert /a0/... paths to local absolute paths

(path: str)

Source from the content-addressed store, hash-verified

599
600
601def fix_dev_path(path: str):
602 "On dev environment, convert /a0/... paths to local absolute paths"
603 from helpers.runtime import is_development
604
605 if is_development():
606 if path.startswith("/a0/"):
607 path = path.replace("/a0/", "")
608 return get_abs_path(path)
609
610
611def normalize_a0_path(path: str):

Callers 1

get_abs_path_developmentFunction · 0.85

Calls 3

is_developmentFunction · 0.90
replaceMethod · 0.80
get_abs_pathFunction · 0.70

Tested by

no test coverage detected