-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlaunch.bat
More file actions
49 lines (45 loc) · 1.13 KB
/
Copy pathlaunch.bat
File metadata and controls
49 lines (45 loc) · 1.13 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
44
45
46
47
48
49
@echo off
chcp 65001 >nul 2>&1
title AGI Cognitive Assistant
cd /d "%~dp0"
:: Find Python command
set "PYTHON_CMD="
where python >nul 2>&1 && set "PYTHON_CMD=python"
if not defined PYTHON_CMD (
where python3 >nul 2>&1 && set "PYTHON_CMD=python3"
)
if not defined PYTHON_CMD (
where py >nul 2>&1 && set "PYTHON_CMD=py"
)
if not defined PYTHON_CMD (
echo.
echo [ERROR] Python is not installed or not in PATH.
echo.
echo Please run install.bat first, or install Python from:
echo https://www.python.org/downloads/
echo.
echo IMPORTANT: Check "Add Python to PATH" during installation.
echo.
pause
exit /b 1
)
:: Check if PyQt6 is available
%PYTHON_CMD% -c "import PyQt6" >nul 2>&1
if errorlevel 1 (
echo.
echo [ERROR] PyQt6 is not installed.
echo.
echo Please run install.bat first to install dependencies.
echo.
pause
exit /b 1
)
:: Launch the app
%PYTHON_CMD% main.py %*
if errorlevel 1 (
echo.
echo [ERROR] Application exited with errors.
echo Check the console output above for details.
echo.
pause
)