From e310af9e2941c2fbb7370e003276cc37eb230f16 Mon Sep 17 00:00:00 2001 From: James Abel Date: Mon, 7 Oct 2019 14:07:19 -0700 Subject: [PATCH] bpo-38344: Fix syntax in activate.bat (GH-16533) --- Lib/venv/scripts/nt/activate.bat | 2 +- .../next/Windows/2019-10-05-05-50-58.bpo-38344.scr2LO.rst | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 Misc/NEWS.d/next/Windows/2019-10-05-05-50-58.bpo-38344.scr2LO.rst diff --git a/Lib/venv/scripts/nt/activate.bat b/Lib/venv/scripts/nt/activate.bat index 8eb5c1ff664..af4c7e0abac 100644 --- a/Lib/venv/scripts/nt/activate.bat +++ b/Lib/venv/scripts/nt/activate.bat @@ -22,7 +22,7 @@ if defined PYTHONHOME set _OLD_VIRTUAL_PYTHONHOME=%PYTHONHOME% set PYTHONHOME= if defined _OLD_VIRTUAL_PATH set PATH=%_OLD_VIRTUAL_PATH% -else set _OLD_VIRTUAL_PATH=%PATH% +if not defined _OLD_VIRTUAL_PATH set _OLD_VIRTUAL_PATH=%PATH% set PATH=%VIRTUAL_ENV%\__VENV_BIN_NAME__;%PATH% diff --git a/Misc/NEWS.d/next/Windows/2019-10-05-05-50-58.bpo-38344.scr2LO.rst b/Misc/NEWS.d/next/Windows/2019-10-05-05-50-58.bpo-38344.scr2LO.rst new file mode 100644 index 00000000000..b5854d1ecb0 --- /dev/null +++ b/Misc/NEWS.d/next/Windows/2019-10-05-05-50-58.bpo-38344.scr2LO.rst @@ -0,0 +1 @@ +Fix error message in activate.bat