You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
619 B
33 lines
619 B
@echo off
|
|
set "VIRTUAL_ENV=C:\Users\风华\Desktop\概率论\数据库大作业\jz\venv"
|
|
|
|
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%"
|
|
|
|
if defined 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%\Scripts;%PATH%"
|
|
|
|
:END
|