-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
39 lines (30 loc) · 743 Bytes
/
start.bat
File metadata and controls
39 lines (30 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
@echo off
echo Starting SimControl...
:: Check if Python is installed
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo Python is not installed or not in PATH.
echo Please install Python from https://python.org
pause
exit /b 1
)
:: Check if pip is available
python -m pip --version >nul 2>&1
if %errorlevel% neq 0 (
echo pip is not available.
echo Please reinstall Python with pip included.
pause
exit /b 1
)
echo Installing requirements...
python -m pip install -r requirements.txt
if %errorlevel% neq 0 (
echo Failed to install requirements.
echo Please check your internet connection and try again.
pause
exit /b 1
)
cls
echo Starting SimControl server...
python ./app.py
pause