MCPcopy Create free account
hub / github.com/pytorch/executorch / repo_root_dir

Function repo_root_dir

tools/cmake/buck_util.py:18–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16
17@cache
18def repo_root_dir() -> Path:
19 git_root = subprocess.check_output(
20 ["git", "rev-parse", "--show-toplevel"],
21 cwd=os.path.dirname(os.path.realpath(__file__)),
22 text=True,
23 ).strip()
24 return Path(git_root)
25
26
27class Buck2Runner:

Callers 1

runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected