Skip to content

accept direct path to interpreter as search path #366

@eleanorjboyd

Description

@eleanorjboyd

Currently, to search the python environments extension sends directory paths to the Python Environment Tool (PET) via the configure() RPC call. The workspaceSearchPaths setting defaults to "./**/.venv" — a glob pattern that is resolved against each workspace folder and then passed to PET as environmentDirectories. PET then crawls those directories looking for Python environments.

Proposed change: Instead of sending a .venv folder path as a search directory, send the path to the Python executable inside the environment ./**/{bin,Scripts}/python{,.exe} and have PET accept an executable path as a valid search input.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new features or functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions