Files
kota-technician-tool/run_windows.bat
T
kkallas bfa7edce6f Technician tool v0.8
Imported from the Google Drive folder 004-technician_tool/v0.8.
2026-09-28 19:19:55 +02:00

28 lines
855 B
Batchfile

@echo off
setlocal
cd /d "%~dp0"
rem Keep the virtual environment out of the (Google Drive) tool folder.
set "UV_PROJECT_ENVIRONMENT=%LOCALAPPDATA%\KotaTechnicianTool\venv-0.8"
set "PATH=%USERPROFILE%\.local\bin;%PATH%"
where uv >nul 2>nul
if errorlevel 1 (
echo uv ^(Python package runner^) is not installed.
echo It will be installed for the current user from https://astral.sh/uv
choice /m "Install uv now"
if errorlevel 2 exit /b 1
powershell -NoProfile -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
)
where uv >nul 2>nul
if errorlevel 1 (
echo [!] uv installation failed. Ask the firmware team for help.
pause
exit /b 1
)
echo Starting KOTA Sensorbox Technician Tool (first start downloads dependencies)...
uv run --frozen --no-dev --python 3.12 python -m kota_tech
if errorlevel 1 pause