mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
Original CL: https://chromiumcodereview.appspot.com/1200843003/ R=pgervais@chromium.org BUG=503067 TEST=tested on Mac, Windows and Linux bots Review URL: https://codereview.chromium.org/1205873002. git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@295842 0039d316-1c4b-4281-b951-d872f2087c98
27 lines
566 B
Batchfile
27 lines
566 B
Batchfile
@echo off
|
|
set "VIRTUAL_ENV=__VIRTUAL_ENV__"
|
|
|
|
if defined _OLD_VIRTUAL_PROMPT (
|
|
set "PROMPT=%_OLD_VIRTUAL_PROMPT%"
|
|
) else (
|
|
if not defined PROMPT (
|
|
set "PROMPT=$P$G"
|
|
)
|
|
set "_OLD_VIRTUAL_PROMPT=%PROMPT%"
|
|
)
|
|
set "PROMPT=__VIRTUAL_WINPROMPT__ %PROMPT%"
|
|
|
|
if not defined _OLD_VIRTUAL_PYTHONHOME (
|
|
set "_OLD_VIRTUAL_PYTHONHOME=%PYTHONHOME%"
|
|
)
|
|
set PYTHONHOME=
|
|
|
|
if defined _OLD_VIRTUAL_PATH (
|
|
set "PATH=%_OLD_VIRTUAL_PATH%"
|
|
) else (
|
|
set "_OLD_VIRTUAL_PATH=%PATH%"
|
|
)
|
|
set "PATH=%VIRTUAL_ENV%\__BIN_NAME__;%PATH%"
|
|
|
|
:END
|