MCPcopy Index your code
hub / github.com/AI45Lab/Code / repo_config_path

Function repo_config_path

sdk/python/examples/orchestration_workflow.py:21–28  ·  view source on GitHub ↗

Find .a3s/config.acl walking up from this file.

()

Source from the content-addressed store, hash-verified

19
20
21def repo_config_path() -> Path:
22 """Find .a3s/config.acl walking up from this file."""
23 here = Path(__file__).resolve()
24 for parent in here.parents:
25 candidate = parent / ".a3s" / "config.acl"
26 if candidate.exists():
27 return candidate
28 raise SystemExit("could not locate .a3s/config.acl above this example")
29
30
31def main() -> int:

Callers 1

mainFunction · 0.70

Calls 2

resolveMethod · 0.80
existsMethod · 0.45

Tested by

no test coverage detected