]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-38344: Fix syntax in activate.bat (GH-16533)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 7 Oct 2019 21:26:57 +0000 (14:26 -0700)
committerGitHub <noreply@github.com>
Mon, 7 Oct 2019 21:26:57 +0000 (14:26 -0700)
(cherry picked from commit e310af9e2941c2fbb7370e003276cc37eb230f16)

Co-authored-by: James Abel <j@abel.co>
Lib/venv/scripts/nt/activate.bat
Misc/NEWS.d/next/Windows/2019-10-05-05-50-58.bpo-38344.scr2LO.rst [new file with mode: 0644]

index 8eb5c1ff664fb7a1b97244d723680ecd090c0891..af4c7e0abacb1c4438546edc1d2f903f213482cf 100644 (file)
@@ -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 (file)
index 0000000..b5854d1
--- /dev/null
@@ -0,0 +1 @@
+Fix error message in activate.bat