File size: 410 Bytes
4d10530
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
@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%