MCPcopy Index your code
hub / github.com/python/cpython / build_python_path

Function build_python_path

Platforms/Apple/__main__.py:208–219  ·  view source on GitHub ↗

The path to the build Python binary.

()

Source from the content-addressed store, hash-verified

206
207
208def build_python_path() -> Path:
209 """The path to the build Python binary."""
210 build_dir = subdir("build")
211 binary = build_dir / "python"
212 if not binary.is_file():
213 binary = binary.with_suffix(".exe")
214 if not binary.is_file():
215 raise FileNotFoundError(
216 f"Unable to find `python(.exe)` in {build_dir}"
217 )
218
219 return binary
220
221
222@contextmanager

Callers 1

configure_host_pythonFunction · 0.70

Calls 3

subdirFunction · 0.70
is_fileMethod · 0.45
with_suffixMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…