MCPcopy 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
68def 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
74def detect_pi_bin() -> str:

Callers 1

detect_pi_binFunction · 0.70

Calls 1

runMethod · 0.45

Tested by

no test coverage detected