Skip to content

Are non-shared virtual environments automatically activated? #179

Answered by lucasvieirasilva
sueskind asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @sueskind, currently, only shared environments are automatically activated because in the cases you mentioned you can use the poetry run ... before your command and poetry takes care of running your command in the virtual environment.

Example:

"behave": {
    "executor": "@nxlv/python:run-commands",
    "options": {
        "command": "poetry run behave",
        "forwardAllArgs": true,
        "cwd": "apps/my-project"
    }
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sueskind
Comment options

Answer selected by sueskind
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants