diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2013-05-20 22:28:52 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2013-05-20 22:28:52 (GMT) |
commit | e254751a63ef448570a73ba8ee5a3192a1bb7651 (patch) | |
tree | b365f7351ce595422df3f9416f9ca2735986f597 /Lib/venv | |
parent | ea3cfc5f34aaea9e29aea1d55c813b97b8c3ef86 (diff) | |
download | cpython-e254751a63ef448570a73ba8ee5a3192a1bb7651.zip cpython-e254751a63ef448570a73ba8ee5a3192a1bb7651.tar.gz cpython-e254751a63ef448570a73ba8ee5a3192a1bb7651.tar.bz2 |
Issue #17744: Now unset VIRTUAL_ENV environment variable when deactivating.
Diffstat (limited to 'Lib/venv')
-rw-r--r-- | Lib/venv/scripts/nt/deactivate.bat | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Lib/venv/scripts/nt/deactivate.bat b/Lib/venv/scripts/nt/deactivate.bat index 62da5b1..313c079 100644 --- a/Lib/venv/scripts/nt/deactivate.bat +++ b/Lib/venv/scripts/nt/deactivate.bat @@ -1,17 +1,21 @@ @echo off
if defined _OLD_VIRTUAL_PROMPT (
- set PROMPT=%_OLD_VIRTUAL_PROMPT%
+ set "PROMPT=%_OLD_VIRTUAL_PROMPT%"
)
set _OLD_VIRTUAL_PROMPT=
if defined _OLD_VIRTUAL_PYTHONHOME (
- set PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME%
- set _OLD_VIRTUAL_PYTHONHOME=
+ set "PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME%"
+ set _OLD_VIRTUAL_PYTHONHOME=
)
-if defined _OLD_VIRTUAL_PATH set PATH=%_OLD_VIRTUAL_PATH%
+if defined _OLD_VIRTUAL_PATH (
+ set "PATH=%_OLD_VIRTUAL_PATH%"
+)
set _OLD_VIRTUAL_PATH=
+set VIRTUAL_ENV=
+
:END
|