Are non-shared virtual environments automatically activated? #179
-
I would like to add the following target to my "behave": {
"executor": "@nxlv/python:run-commands",
"options": {
"command": "behave",
"forwardAllArgs": true,
"cwd": "apps/my-project"
}
} It runs the I found a lot of discussions regarding venv activation for the I use a separate venv for the project and when running the target with So my question is: Is the venv supposed to be activated automatically for non-shared virtual environments?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @sueskind, currently, only shared environments are automatically activated because in the cases you mentioned you can use the Example: "behave": {
"executor": "@nxlv/python:run-commands",
"options": {
"command": "poetry run behave",
"forwardAllArgs": true,
"cwd": "apps/my-project"
}
} |
Beta Was this translation helpful? Give feedback.
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: