Skip to content

Commit

Permalink
[3.8] [doc] Document VIRTUAL_ENV environment variable (GH-21970) (GH-…
Browse files Browse the repository at this point in the history
…24363)

(cherry picked from commit 3584d4b)
  • Loading branch information
miss-islington authored Mar 1, 2021
1 parent 643939a commit 6900a51
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 @@ -121,6 +121,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 6900a51

Please sign in to comment.