Crate python_launcher
source ·Structs
The version of Python found.
Enums
Represents the version of Python a user requsted.
Represents how tight of a match a
Version
is to a RequestedVersion
.Functions
Checks the
PY_PYTHON
environment variable.Checks the
PY_PYTHON{major}
environment variable.Finds the executable representing the latest Python version.
Gets the contents of a directory.
Filters the paths down to
pythonX.Y
paths.Finds the shebang line from
reader
.Returns the entries in
PATH
.Split the shebang into the Python version specified and the arguments to pass to the executable.
Attempts to find a version specifier from a CLI argument.