Technician tool v0.1
Imported from the Google Drive folder 004-technician_tool/v0.1.
This commit is contained in:
commit
e5a33a1c34
28 files changed
+2988
No files matched your search
@@ -0,0 +1,27 @@
|
||||
@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.1"
|
||||
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
|
||||
Reference in new issue
Block a user