2012-05-25 23:45:29 -03:00
|
|
|
@echo off
|
2013-05-20 19:38:12 -03:00
|
|
|
set "VIRTUAL_ENV=__VENV_DIR__"
|
2012-05-25 23:45:29 -03:00
|
|
|
|
|
|
|
if not defined PROMPT (
|
2013-05-20 19:38:12 -03:00
|
|
|
set "PROMPT=$P$G"
|
2012-05-25 23:45:29 -03:00
|
|
|
)
|
|
|
|
|
|
|
|
if defined _OLD_VIRTUAL_PROMPT (
|
2013-05-20 19:38:12 -03:00
|
|
|
set "PROMPT=%_OLD_VIRTUAL_PROMPT%"
|
2012-05-25 23:45:29 -03:00
|
|
|
)
|
|
|
|
|
|
|
|
if defined _OLD_VIRTUAL_PYTHONHOME (
|
2013-05-20 19:38:12 -03:00
|
|
|
set "PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME%"
|
2012-05-25 23:45:29 -03:00
|
|
|
)
|
|
|
|
|
2013-05-20 19:38:12 -03:00
|
|
|
set "_OLD_VIRTUAL_PROMPT=%PROMPT%"
|
2013-10-02 07:36:16 -03:00
|
|
|
set "PROMPT=__VENV_PROMPT__%PROMPT%"
|
2012-05-25 23:45:29 -03:00
|
|
|
|
|
|
|
if defined PYTHONHOME (
|
2013-05-20 19:38:12 -03:00
|
|
|
set "_OLD_VIRTUAL_PYTHONHOME=%PYTHONHOME%"
|
|
|
|
set PYTHONHOME=
|
2012-05-25 23:45:29 -03:00
|
|
|
)
|
|
|
|
|
2013-05-20 19:38:12 -03:00
|
|
|
if defined _OLD_VIRTUAL_PATH (
|
|
|
|
set "PATH=%_OLD_VIRTUAL_PATH%"
|
|
|
|
) else (
|
|
|
|
set "_OLD_VIRTUAL_PATH=%PATH%"
|
|
|
|
)
|
2012-05-25 23:45:29 -03:00
|
|
|
|
2013-05-20 19:38:12 -03:00
|
|
|
set "PATH=%VIRTUAL_ENV%\__VENV_BIN_NAME__;%PATH%"
|
2012-05-25 23:45:29 -03:00
|
|
|
|
|
|
|
:END
|