Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/1jehuang/jcode
/ shutil_which
Function
shutil_which
scripts/bench_memory_cli.py:68–71 ·
view source on GitHub ↗
(name: str)
Source
from the content-addressed store, hash-verified
66
67
68
def
shutil_which(name: str) -> str | None:
69
return
subprocess.run(
70
[
"bash"
,
"-lc"
, f
"command -v {name}"
], capture_output=True, text=True, check=False
71
).stdout.strip() or None
72
73
74
def
detect_pi_bin() -> str:
Callers
1
detect_pi_bin
Function · 0.70
Calls
1
run
Method · 0.45
Tested by
no test coverage detected