Bastian Wenzel <[email protected]> added the comment:

So if I replace this section from venv's activate.bat:
if defined _OLD_VIRTUAL_PATH (
    set "PATH=%_OLD_VIRTUAL_PATH%"
) else (
    set "_OLD_VIRTUAL_PATH=%PATH%"
)

with the part from virtualenv's activate.bat:

REM if defined _OLD_VIRTUAL_PATH (
if not defined _OLD_VIRTUAL_PATH goto ENDIFVPATH1
    set "PATH=%_OLD_VIRTUAL_PATH%"
:ENDIFVPATH1
REM ) else (
if defined _OLD_VIRTUAL_PATH goto ENDIFVPATH2
    set "_OLD_VIRTUAL_PATH=%PATH%"
:ENDIFVPATH2

then venv\Scrtips\activate.bat seems to behave as expected.

----------
keywords: +patch
Added file: https://bugs.python.org/file48268/Report.patch

_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue36634>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to