mirror of https://github.com/Mai-with-u/MaiBot.git
fix: 当虚拟环境存在时跳过创建
parent
f11f5e76a1
commit
826daa518e
10
run.bat
10
run.bat
|
|
@ -1,6 +1,10 @@
|
|||
@ECHO OFF
|
||||
chcp 65001
|
||||
python -m venv venv
|
||||
call venv\Scripts\activate.bat
|
||||
pip install -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple --upgrade -r requirements.txt
|
||||
if not exist "venv" (
|
||||
python -m venv venv
|
||||
call venv\Scripts\activate.bat
|
||||
pip install -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple --upgrade -r requirements.txt
|
||||
) else (
|
||||
call venv\Scripts\activate.bat
|
||||
)
|
||||
python run.py
|
||||
Loading…
Reference in New Issue