@echo off setlocal cd /d "%~dp0" rem One shared Python environment for every version (update_windows.bat keeps it current). set "UV_PROJECT_ENVIRONMENT=%LOCALAPPDATA%\KotaTechnicianTool\venv" 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