mirror.Manyana/启动脚本(防闪退).bat

15 lines
262 B
Batchfile

@echo off
set PYTHON_EXE=..\environments\Python39\python.exe
set MAIN_SCRIPT=main.py
rem checking.....
if exist "%PYTHON_EXE%" (
"%PYTHON_EXE%" "%MAIN_SCRIPT%"
) else (
cd venv\Scripts
call activate.bat
cd ..\..
python %MAIN_SCRIPT%
)
pause