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)
| 302 | |
| 303 | |
| 304 | def _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 | |
| 318 | def _run(cmd: list[str], **kwargs) -> subprocess.CompletedProcess[str]: |
no outgoing calls
no test coverage detected