Support a .venv
file
#165
Replies: 3 comments 5 replies
-
If this takes an absolute path then we could also support this in the Python extension for VS Code. |
Beta Was this translation helpful? Give feedback.
-
Pipenv implements this in a slightly different way:
This covers both the environment-in-project and virtualenvwrapper use cases, but introduces some security concerns since the |
Beta Was this translation helpful? Give feedback.
-
I think #168 will solve this. |
Beta Was this translation helpful? Give feedback.
-
The file would have a single line specifying the absolute path to a virtual environment.
If it was desired to play nice with oh-my-zsh users, if
WORKON_HOME
is set, use that as the anchor point for any relative path specified in the file (I'm not willing to assume~/.virtualenvs
).This originally came up from https://discuss.python.org/t/trying-to-come-up-with-a-default-directory-name-for-virtual-environments/3750 .
Beta Was this translation helpful? Give feedback.
All reactions