forked from raufer/graphify
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlaunch.bat
More file actions
35 lines (31 loc) · 1.18 KB
/
launch.bat
File metadata and controls
35 lines (31 loc) · 1.18 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
@echo off
setlocal
cd /d "%~dp0"
:: ── Check Python ─────────────────────────────────────────────────────────────
where python >nul 2>&1
if %errorlevel% neq 0 (
echo.
echo ERROR: Python was not found in your PATH.
echo Please install Python 3.8+ from https://python.org
echo.
pause
exit /b 1
)
:: ── Check core dependencies ───────────────────────────────────────────────────
python -c "import customtkinter, pyvis" >nul 2>&1
if %errorlevel% neq 0 (
echo Installing required packages...
pip install customtkinter pyvis tkinterdnd2 --quiet
if %errorlevel% neq 0 (
echo.
echo ERROR: Package installation failed.
echo Try running manually:
echo pip install customtkinter pyvis tkinterdnd2
echo.
pause
exit /b 1
)
)
:: ── Launch — terminal stays open until the window is visible ─────────────────
python _launch_helper.py
endlocal