MCPcopy Create free account
hub / github.com/BasisResearch/lean.py / lean_prefix

Function lean_prefix

lean_py/utils.py:42–44  ·  view source on GitHub ↗

Return the path printed by `lean --print-prefix`.

()

Source from the content-addressed store, hash-verified

40
41@lru_cache(maxsize=1)
42def lean_prefix() -> Path:
43 """Return the path printed by `lean --print-prefix`."""
44 return Path(run_command(["lean", "--print-prefix"]))
45
46
47def bundle_dir() -> Path | None:

Callers 2

lean_lib_dirFunction · 0.85
lean_include_dirFunction · 0.85

Calls 1

run_commandFunction · 0.85

Tested by

no test coverage detected