Skip to content

Commit 3584d4b

Browse files
[doc] Document VIRTUAL_ENV environment variable (GH-21970)
1 parent ea5a636 commit 3584d4b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Doc/using/venv-create.inc

+4
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ directory containing the virtual environment):
126126
| | PowerShell | PS C:\\> <venv>\\Scripts\\Activate.ps1 |
127127
+-------------+-----------------+-----------------------------------------+
128128

129+
When a virtual environment is active, the :envvar:`VIRTUAL_ENV` environment
130+
variable is set to the path of the virtual environment. This can be used to
131+
check if one is running inside a virtual environment.
132+
129133
You don't specifically *need* to activate an environment; activation just
130134
prepends the virtual environment's binary directory to your path, so that
131135
"python" invokes the virtual environment's Python interpreter and you can run

0 commit comments

Comments
 (0)