Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pex-tool/pex
/ find_repo_root
Function
find_repo_root
scripts/embed-virtualenv.py:15–23 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
13
14
15
def
find_repo_root() -> Path:
16
return
Path(
17
subprocess.run(
18
args=[
"git"
,
"rev-parse"
,
"--show-toplevel"
],
19
text=True,
20
stdout=subprocess.PIPE,
21
check=True,
22
).stdout.strip()
23
)
24
25
26
def
main() -> None:
Callers
1
main
Function · 0.85
Calls
2
strip
Method · 0.80
run
Method · 0.45
Tested by
no test coverage detected