michael@0: @echo off michael@0: set "VIRTUAL_ENV=__VIRTUAL_ENV__" michael@0: michael@0: if defined _OLD_VIRTUAL_PROMPT ( michael@0: set "PROMPT=%_OLD_VIRTUAL_PROMPT%" michael@0: ) else ( michael@0: if not defined PROMPT ( michael@0: set "PROMPT=$P$G" michael@0: ) michael@0: set "_OLD_VIRTUAL_PROMPT=%PROMPT%" michael@0: ) michael@0: set "PROMPT=__VIRTUAL_WINPROMPT__ %PROMPT%" michael@0: michael@0: if not defined _OLD_VIRTUAL_PYTHONHOME ( michael@0: set "_OLD_VIRTUAL_PYTHONHOME=%PYTHONHOME%" michael@0: ) michael@0: set PYTHONHOME= michael@0: michael@0: if defined _OLD_VIRTUAL_PATH ( michael@0: set "PATH=%_OLD_VIRTUAL_PATH%" michael@0: ) else ( michael@0: set "_OLD_VIRTUAL_PATH=%PATH%" michael@0: ) michael@0: set "PATH=%VIRTUAL_ENV%\__BIN_NAME__;%PATH%" michael@0: michael@0: :END