-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.bat
More file actions
43 lines (38 loc) · 1.13 KB
/
Copy pathinstall.bat
File metadata and controls
43 lines (38 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
@echo off
REM MushLog Installation Script for Windows
echo Installing MushLog dependencies...
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 3.7 or higher from https://python.org
pause
exit /b 1
)
REM Check Python version
for /f "tokens=2" %%i in ('python --version 2^>^&1') do set python_version=%%i
echo Python %python_version% detected. Installing dependencies...
REM Upgrade pip
python -m pip install --upgrade pip
REM Install requirements
if exist "requirements.txt" (
python -m pip install -r requirements.txt
if errorlevel 1 (
echo ❌ Error installing dependencies. Please check the error messages above.
pause
exit /b 1
) else (
echo ✅ Dependencies installed successfully!
echo.
echo To run MushLog:
echo python run_mushlog.py
echo.
echo To run MushView:
echo python run_mushview.py
)
) else (
echo ❌ requirements.txt not found. Please ensure you're in the correct directory.
pause
exit /b 1
)
pause