Change venvFolders to no longer be anchored to the user's home directory
See original GitHub issueWe discovered during our bug bash that venvFolders
exists but isn’t documented. Either we leave it, document it, and potentially not make (at least) our pyenv support depend on .pyenv
being in it, or we remove the setting and use the documented functionality of pyenv
directly.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:19
- Comments:17 (9 by maintainers)
Top Results From Across the Web
How can I set up a virtual environment for Python in Visual ...
Python: Venv Folders Folders in your home directory to look into for virtual environments (supports pyenv, direnv and virtualenvwrapper by default).
Read more >Settings Reference for Python - Visual Studio Code
Paths of directories or files that should be included in analysis. If no paths are specified, Pylance defaults to the directory that contains...
Read more >Python Virtual Environments: A Primer
In this tutorial, you'll learn how to work with Python's venv module to create and manage separate virtual environments for your Python ...
Read more >Local development environment for OpenShift - Redpill Linpro
Using this setup, changes to the application ( wsgi.py ) are directly visible. ... There is also no need to copy the .git...
Read more >co2mpas - PyPI
DO NOT MODIFY !!!!! used by Windows StartMenu shortcuts. bash-console.bat ## Open a python+cygwin enabled `bash` console. CO2MPAS/ ## User's HOME directory ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I ran across this issue because I have the following use case:
Making venvFolders not relative to the user’s home dir would allow me to specify each subproject once and easily switch between the corresponding environments as I switch between projects. The current workaround is to update venvPath or pythonPath each time I switch.
What’s the current status of this?
venvFolders
andvenvPath
still exist, and are inconsistently documented:venvPath
venvFolders
(but not the fact that it’s relative to your homedir)I thought the original plan, to make
venvPaths
an array of entries likevenvPath
works today, and to get rid ofvenvFolders
, made sense. It’s the least surprising (can be relative to${workspaceFolder}
or not), and supporting multiple entries makes it work with many tools, other filesystems mounted outside one’s home directory or project root, etc. It could be overridden in.code-workspace
orsettings.json
files for projects to provide good defaults in source.Did this ticket just get forgotten about? It would very much improve my company’s use cases to see this happen.