Skip to content

espidf installer: Make sure python does not come from virtual env #33

@N3xed

Description

@N3xed

In the esp-idf installer when it tries to create a python virtual env with

python esp-idf-v4.3.1/tools/idf_tools.py --idf-path esp-idf-v4.3.1 --quiet --non-interactive install-python-env

if python is already from a virtual env this installation fails with:

ERROR: This script was called from a virtual environment, can not create a virtual environment again

Desired state:
Detect this and try to get the actual python executable from which the virtual env was created.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions