Skip to content

Commit

Permalink
[doc] Document VIRTUAL_ENV environment variable (GH-21970)
Browse files Browse the repository at this point in the history
(cherry picked from commit 3584d4b)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
  • Loading branch information
miss-islington and andresdelfino authored Jan 30, 2021
1 parent d34be1e commit 08867a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Doc/using/venv-create.inc
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ directory containing the virtual environment):
| | PowerShell | PS C:\\> <venv>\\Scripts\\Activate.ps1 |
+-------------+-----------------+-----------------------------------------+

When a virtual environment is active, the :envvar:`VIRTUAL_ENV` environment
variable is set to the path of the virtual environment. This can be used to
check if one is running inside a virtual environment.

You don't specifically *need* to activate an environment; activation just
prepends the virtual environment's binary directory to your path, so that
"python" invokes the virtual environment's Python interpreter and you can run
Expand Down

0 comments on commit 08867a0

Please sign in to comment.