Crate python_launcher[][src]

Structs

Version

The version of Python found.

Enums

RequestedVersion

Represents the version of Python a user requsted.

VersionMatch

Represents how tight of a match a Version is to a RequestedVersion.

Functions

check_default_env_var

Checks the PY_PYTHON environment variable.

check_major_env_var

Checks the PY_PYTHON{major} environment variable.

choose_executable

Finds the executable representing the latest Python version.

directory_contents

Gets the contents of a directory.

filter_python_executables

Filters the paths down to pythonX.Y paths.

find_shebang

Finds the shebang line from reader.

path_entries

Returns the entries in PATH.

split_shebang

Split the shebang into the Python version specified and the arguments to pass to the executable.

version_from_flag

Attempts to find a version specifier from a CLI argument.