28 lines
855 B
Batchfile
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.7"
|
|
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
|