Kaydet (Commit) 067e48b7 authored tarafından Vinay Sajip's avatar Vinay Sajip

Closes #17743: Merged fix from 3.3.

@echo off @echo off
set VIRTUAL_ENV=__VENV_DIR__ set "VIRTUAL_ENV=__VENV_DIR__"
if not defined PROMPT ( if not defined PROMPT (
set PROMPT=$P$G set "PROMPT=$P$G"
) )
if defined _OLD_VIRTUAL_PROMPT ( if defined _OLD_VIRTUAL_PROMPT (
set PROMPT=%_OLD_VIRTUAL_PROMPT% set "PROMPT=%_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_PROMPT=%PROMPT% set "_OLD_VIRTUAL_PROMPT=%PROMPT%"
set PROMPT=__VENV_NAME__%PROMPT% set "PROMPT=__VENV_NAME__%PROMPT%"
if defined PYTHONHOME ( if defined PYTHONHOME (
set _OLD_VIRTUAL_PYTHONHOME=%PYTHONHOME% set "_OLD_VIRTUAL_PYTHONHOME=%PYTHONHOME%"
set PYTHONHOME= set PYTHONHOME=
) )
if defined _OLD_VIRTUAL_PATH set PATH=%_OLD_VIRTUAL_PATH%; goto SKIPPATH if defined _OLD_VIRTUAL_PATH (
set "PATH=%_OLD_VIRTUAL_PATH%"
set _OLD_VIRTUAL_PATH=%PATH% ) else (
set "_OLD_VIRTUAL_PATH=%PATH%"
)
:SKIPPATH set "PATH=%VIRTUAL_ENV%\__VENV_BIN_NAME__;%PATH%"
set PATH=%VIRTUAL_ENV%\__VENV_BIN_NAME__;%PATH%
: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