MCPcopy
hub / github.com/reflex-dev/reflex / _venv_python

Function _venv_python

scripts/check_min_deps.py:304–315  ·  view source on GitHub ↗

Return the path to the interpreter inside a virtualenv. Args: venv: The virtualenv directory. Returns: The interpreter path, accounting for the platform's layout.

(venv: Path)

Source from the content-addressed store, hash-verified

302
303
304def _venv_python(venv: Path) -> Path:
305 """Return the path to the interpreter inside a virtualenv.
306
307 Args:
308 venv: The virtualenv directory.
309
310 Returns:
311 The interpreter path, accounting for the platform's layout.
312 """
313 if sys.platform == "win32":
314 return venv / "Scripts" / "python.exe"
315 return venv / "bin" / "python"
316
317
318def _run(cmd: list[str], **kwargs) -> subprocess.CompletedProcess[str]:

Callers 1

_resolve_and_checkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected