MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / maybe_absolute_path

Function maybe_absolute_path

tools/audiocpp_cli/run_audiocpp_cli_path_tests.py:245–253  ·  view source on GitHub ↗
(value: Any)

Source from the content-addressed store, hash-verified

243 return command
244
245
246def maybe_absolute_path(value: Any) -> Any:
247 if not isinstance(value, str):
248 return value
249 path = Path(value)
250 if path.is_absolute():
251 return value
252 if value.startswith(("assets/", "resources/", "models/", "build/", "reference/")):
253 return str(REPO_ROOT / path)
254 return value
255
256

Callers 2

maybe_absolute_path_listFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected