42 lines
824 B
Batchfile
42 lines
824 B
Batchfile
@echo off
|
|
title Photon Feeder Mk2 Debug Monitor
|
|
|
|
:: Check if Python is available
|
|
python --version >nul 2>&1
|
|
if errorlevel 1 (
|
|
echo Error: Python not found in PATH
|
|
echo Please install Python from https://python.org
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
:: Check if pyserial is installed
|
|
python -c "import serial" >nul 2>&1
|
|
if errorlevel 1 (
|
|
echo Installing pyserial...
|
|
pip install pyserial
|
|
if errorlevel 1 (
|
|
echo Error: Failed to install pyserial
|
|
pause
|
|
exit /b 1
|
|
)
|
|
)
|
|
|
|
:: Check if textual is installed
|
|
python -c "import textual" >nul 2>&1
|
|
if errorlevel 1 (
|
|
echo Installing textual...
|
|
pip install textual
|
|
if errorlevel 1 (
|
|
echo Error: Failed to install textual
|
|
pause
|
|
exit /b 1
|
|
)
|
|
)
|
|
|
|
:: Run the monitor
|
|
cd /d "%~dp0"
|
|
python feeder_monitor.py %*
|
|
|
|
pause
|