diff options
author | James Abel <j@abel.co> | 2019-10-07 21:07:19 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@python.org> | 2019-10-07 21:07:19 (GMT) |
commit | e310af9e2941c2fbb7370e003276cc37eb230f16 (patch) | |
tree | 120bf993d3554ce710cdc2d1bb740a73943c1b5b | |
parent | 15ae75d660befe643ed42eb2707a557cea97256c (diff) | |
download | cpython-e310af9e2941c2fbb7370e003276cc37eb230f16.zip cpython-e310af9e2941c2fbb7370e003276cc37eb230f16.tar.gz cpython-e310af9e2941c2fbb7370e003276cc37eb230f16.tar.bz2 |
bpo-38344: Fix syntax in activate.bat (GH-16533)
-rw-r--r-- | Lib/venv/scripts/nt/activate.bat | 2 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Windows/2019-10-05-05-50-58.bpo-38344.scr2LO.rst | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/Lib/venv/scripts/nt/activate.bat b/Lib/venv/scripts/nt/activate.bat index 8eb5c1f..af4c7e0 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 0000000..b5854d1 --- /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 |