pyUpload/start.cmd

25 lines
608 B
Batchfile
Raw Normal View History

@echo off
setlocal
chcp 65001 >nul
:: Prüfen, ob python vorhanden ist
where python >nul 2>nul
if errorlevel 1 (
echo [Fehler] Python wurde nicht gefunden.
echo Bitte installiere Python 3.8 oder höher: https://www.python.org/downloads/windows/
pause
exit /b 1
)
:: Verzeichnis von start.cmd ermitteln
set SCRIPT_DIR=%~dp0
:: Starte den Python-Wrapper, der .venv erkennt
2025-04-25 08:56:35 +02:00
if exist app\.venv\Scripts\python.exe (
python.exe "%SCRIPT_DIR%start.pyw" %*
) else (
echo Erste Initialisierung erforderlich.
echo Starte Setup-Konsole...
start cmd /k python.exe "%SCRIPT_DIR%start.pyw" %*
)