-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
43 lines (37 loc) · 1.02 KB
/
start.bat
File metadata and controls
43 lines (37 loc) · 1.02 KB
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
40
41
42
43
@echo off
echo ============================================================
echo Python Network Dashboard Launcher
echo ============================================================
echo.
REM Check if Python is installed
python --version >nul 2>&1
if errorlevel 1 (
echo ERROR: Python is not installed or not in PATH
echo Please install Python from https://www.python.org/
pause
exit /b 1
)
echo Python detected. Checking dependencies...
echo.
REM Check if required packages are installed
python -c "import psutil, flask, flask_cors" >nul 2>&1
if errorlevel 1 (
echo Installing required packages...
pip install -r requirements.txt
if errorlevel 1 (
echo ERROR: Failed to install dependencies
pause
exit /b 1
)
)
echo.
echo Starting Python Network Dashboard...
echo Server will be available at: http://localhost:8081
echo.
echo Press Ctrl+C to stop the server
echo ============================================================
echo.
python server.py
echo.
echo Server stopped.
pause