forked from reform/eduforge
Добавить run.bat
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
@echo off
|
||||
rem EduForge — установка зависимостей и запуск (Windows). Двойной клик или: run.bat
|
||||
cd /d "%~dp0"
|
||||
title EduForge
|
||||
|
||||
set "PY="
|
||||
where py >nul 2>nul
|
||||
if not errorlevel 1 (
|
||||
set "PY=py -3"
|
||||
goto :run
|
||||
)
|
||||
where python >nul 2>nul
|
||||
if not errorlevel 1 (
|
||||
set "PY=python"
|
||||
goto :run
|
||||
)
|
||||
echo [!] Python не найден.
|
||||
echo Установи Python 3.10+ : https://www.python.org/downloads/
|
||||
echo При установке отметь "Add python.exe to PATH".
|
||||
pause
|
||||
exit /b 1
|
||||
|
||||
:run
|
||||
%PY% "%~dp0run.py" %*
|
||||
if errorlevel 1 (
|
||||
echo.
|
||||
echo [!] Запуск завершился с ошибкой — смотри лог выше.
|
||||
pause
|
||||
)
|
||||
exit /b
|
||||
Reference in New Issue
Block a user