@echo off setlocal pushd "%~dp0" >nul 2>&1 if errorlevel 1 ( echo [ERROR] Failed to change to script directory. exit /b 1 ) set "BOOTSTRAP_SCRIPT=bootstrap_deps.py" if not exist "%BOOTSTRAP_SCRIPT%" ( echo [ERROR] Missing %BOOTSTRAP_SCRIPT% in project root. popd >nul 2>&1 exit /b 1 ) where py >nul 2>&1 if not errorlevel 1 ( py -3 "%BOOTSTRAP_SCRIPT%" %* set "EXIT_CODE=%ERRORLEVEL%" goto :done ) where python >nul 2>&1 if errorlevel 1 ( echo [ERROR] Python launcher not found. Install Python 3.10+ and add it to PATH. popd >nul 2>&1 exit /b 1 ) python "%BOOTSTRAP_SCRIPT%" %* set "EXIT_CODE=%ERRORLEVEL%" :done popd >nul 2>&1 exit /b %EXIT_CODE%