17 lines
583 B
Batchfile
17 lines
583 B
Batchfile
@echo off
|
|
rem sdimport launcher for Windows. Keep this file ASCII-only (encoding safety).
|
|
setlocal
|
|
chcp 65001 >nul
|
|
set "ROOT=%~dp0.."
|
|
set "PYEXE="
|
|
for /f "delims=" %%i in ('where python.exe 2^>nul') do if not defined PYEXE set "PYEXE=%%i"
|
|
if not defined PYEXE for /f "delims=" %%i in ('where py.exe 2^>nul') do if not defined PYEXE set "PYEXE=%%i"
|
|
if not defined PYEXE (
|
|
echo [ERROR] Python not found. Install Python 3.9+ and tick "Add python.exe to PATH".
|
|
exit /b 1
|
|
)
|
|
set "PYTHONPATH=%ROOT%\src"
|
|
set "PYTHONDONTWRITEBYTECODE=1"
|
|
"%PYEXE%" -m sdimport.cli %*
|
|
exit /b %ERRORLEVEL%
|