-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck-cli.bat
More file actions
33 lines (28 loc) · 766 Bytes
/
Copy pathcheck-cli.bat
File metadata and controls
33 lines (28 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@echo off
:: Lightweight launcher for development/use from the repo root
cd /d "%~dp0"
:: Try py launcher first (most reliable on Windows)
where py >nul 2>&1
if not errorlevel 1 (
py -m multiformat_validator %*
exit /b %ERRORLEVEL%
)
:: Try system python
where python >nul 2>&1
if not errorlevel 1 (
python -m multiformat_validator %*
exit /b %ERRORLEVEL%
)
:: Try python3
where python3 >nul 2>&1
if not errorlevel 1 (
python3 -m multiformat_validator %*
exit /b %ERRORLEVEL%
)
:: Fall back to venv python if available
if exist "%~dp0.venv\Scripts\python.exe" (
"%~dp0.venv\Scripts\python.exe" -m multiformat_validator %*
exit /b %ERRORLEVEL%
)
echo [!] Python not found. Install Python 3.12+ or run install.bat first.
exit /b 1