From e254751a63ef448570a73ba8ee5a3192a1bb7651 Mon Sep 17 00:00:00 2001 From: Vinay Sajip Date: Mon, 20 May 2013 15:28:52 -0700 Subject: Issue #17744: Now unset VIRTUAL_ENV environment variable when deactivating. --- Lib/venv/scripts/nt/deactivate.bat | 12 ++++++++---- 1 file 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 -- cgit v0.12