Commit e254751a authored by Vinay Sajip's avatar Vinay Sajip

Issue #17744: Now unset VIRTUAL_ENV environment variable when deactivating.

parent ea3cfc5f
@echo off @echo off
if defined _OLD_VIRTUAL_PROMPT ( if defined _OLD_VIRTUAL_PROMPT (
set PROMPT=%_OLD_VIRTUAL_PROMPT% set "PROMPT=%_OLD_VIRTUAL_PROMPT%"
) )
set _OLD_VIRTUAL_PROMPT= set _OLD_VIRTUAL_PROMPT=
if defined _OLD_VIRTUAL_PYTHONHOME ( if defined _OLD_VIRTUAL_PYTHONHOME (
set PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME% set "PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME%"
set _OLD_VIRTUAL_PYTHONHOME= set _OLD_VIRTUAL_PYTHONHOME=
) )
if defined _OLD_VIRTUAL_PATH set PATH=%_OLD_VIRTUAL_PATH% if defined _OLD_VIRTUAL_PATH (
set "PATH=%_OLD_VIRTUAL_PATH%"
)
set _OLD_VIRTUAL_PATH= set _OLD_VIRTUAL_PATH=
set VIRTUAL_ENV=
:END :END
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment