@echo off REM ================================================================ REM IWZ Ferienwohnungen - Deploy (Vollupload nach Bunny.net) REM ================================================================ setlocal REM Umgebung setzen (IWZ, IWZ_LIB, IWZ_ENV, PYTHONPATH ...) call "%~dp0setenv.bat" >nul REM Virtuelle Umgebung nutzen, falls vorhanden (paramiko etc. liegen dort) if exist "%IWZ%\.venv\Scripts\activate.bat" ( call "%IWZ%\.venv\Scripts\activate.bat" ) REM Python-Interpreter bestimmen (py-Launcher bevorzugt, sonst python) set "PY=py" py --version >nul 2>&1 || set "PY=python" echo. echo === IWZ Ferienwohnungen - Deploy === echo. REM Aus dem Projekt-Root heraus bauen (hugo + public liegen dort) cd /d "%IWZ%" "%PY%" "%IWZ_LIB%\deploy.py" %* set "RC=%ERRORLEVEL%" if not "%RC%"=="0" pause endlocal & exit /b %RC%