32 lines
642 B
Batchfile
32 lines
642 B
Batchfile
@echo off
|
|
REM
|
|
REM Trimble Geodesy Tool - Run Script (Windows)
|
|
REM Aktiviert das Virtual Environment und startet das Programm
|
|
REM
|
|
|
|
REM Wechsle ins Script-Verzeichnis
|
|
cd /d "%~dp0"
|
|
|
|
REM Pruefe ob Virtual Environment existiert
|
|
if not exist venv (
|
|
echo X Fehler: Virtual Environment nicht gefunden.
|
|
echo.
|
|
echo Bitte zuerst setup.bat ausfuehren
|
|
echo.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
REM Aktiviere Virtual Environment
|
|
call venv\Scripts\activate.bat
|
|
|
|
if %ERRORLEVEL% neq 0 (
|
|
echo X Fehler beim Aktivieren des Virtual Environments
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
REM Starte das Programm
|
|
echo Starte Trimble Geodesy Tool...
|
|
python main.py
|