]> granicus.if.org Git - python/commitdiff
bpo-38344: Fix syntax in activate.bat (GH-16533)
authorJames Abel <j@abel.co>
Mon, 7 Oct 2019 21:07:19 +0000 (14:07 -0700)
committerSteve Dower <steve.dower@python.org>
Mon, 7 Oct 2019 21:07:19 +0000 (14:07 -0700)
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