vcorelib.python
index
/home/vkottler/src/vkottler/workspace/vcorelib/vcorelib/python.py

A module for working with paths to python interpreters and virtual
environments.

 
Functions
       
python_entry(version: str = None) -> str
Attempt to get a Python entry-point as a string.
python_version() -> str
Get the version of Python to use.
venv_bin(cwd: Union[pathlib.Path, str, NoneType], program: str = None, version: str = None) -> pathlib.Path
Get the path to a virtual environment's script directory.
venv_dir(cwd: Union[pathlib.Path, str, NoneType], version: str = None) -> pathlib.Path
Get the path for a virtual environment to use.
venv_name(version: str = None) -> str
Get the name for a virtual environment to use.

 
Data
        CURRENT_PYTHON = '3.12'