Function find_pythons_from_path

Source
pub fn find_pythons_from_path(
    path: &PathBuf,
    as_interpreter: bool,
) -> Vec<PythonVersion>
Expand description

Find all Python versions under the given path.

§Arguments:

path: The path to search for Python versions under. as_interpreter: Whether to use the path as an interpreter. Must not be true if it might be a wrapper script.

§Returns:

A list of Python versions found under the given path.