4 ms·
How exactly does `uv` determine which is "the" venv? Is it simply based on the working directory like the `direnv`/`autoenv`/etc. workflows others are describin
by zahlman 2y ago
How exactly does `uv` determine which is "the" venv? Is it simply based on the working directory like the `direnv`/`autoenv`/etc. workflows others are describing here?
It does seem like people have use cases for running code in a different environment vs. the one being actively used to develop the package.
- BiteCode_dev 2y agoIt uses the content of the UV_PROJECT_ENVIRONMENT var env, which defaults to .venv. If you pass --active, it can also look whatever is in VIRTUAL_ENV and CONDA_PREFIX. You can also force an env passing a complete path to --python