mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Update venv activate.bat to escape custom PROMPT variables on Windows (GH-114885)
This commit is contained in:
parent
c12240ed28
commit
7e2703bbff
1 changed files with 2 additions and 2 deletions
|
|
@ -15,8 +15,8 @@ if not defined PROMPT set PROMPT=$P$G
|
|||
if defined _OLD_VIRTUAL_PROMPT set PROMPT=%_OLD_VIRTUAL_PROMPT%
|
||||
if defined _OLD_VIRTUAL_PYTHONHOME set PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME%
|
||||
|
||||
set _OLD_VIRTUAL_PROMPT=%PROMPT%
|
||||
set PROMPT=(__VENV_PROMPT__) %PROMPT%
|
||||
set "_OLD_VIRTUAL_PROMPT=%PROMPT%"
|
||||
set "PROMPT=(__VENV_PROMPT__) %PROMPT%"
|
||||
|
||||
if defined PYTHONHOME set _OLD_VIRTUAL_PYTHONHOME=%PYTHONHOME%
|
||||
set PYTHONHOME=
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue