@echo off setlocal cd /d "%~dp0" set "SCRIPT=%~dp0scripts\scratch_cleanup.py" set "PYEXE=%~dp0venv\Scripts\python.exe" if not exist "%PYEXE%" set "PYEXE=python" "%PYEXE%" --version >nul 2>&1 if %errorlevel% neq 0 ( echo [!] Python not found. Install Python or recreate the project venv first. pause exit /b 1 ) "%PYEXE%" "%SCRIPT%" --apply set "EXIT_CODE=%errorlevel%" pause exit /b %EXIT_CODE%