Files

22 lines
367 B
Batchfile

@echo off
setlocal
cd /d "%~dp0"
if defined PYTHON_EXE (
if exist "%PYTHON_EXE%" (
"%PYTHON_EXE%" -m app
goto :end
)
)
set "CODEX_PYTHON=%USERPROFILE%\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe"
if exist "%CODEX_PYTHON%" (
"%CODEX_PYTHON%" -m app
goto :end
)
python -m app
if errorlevel 1 py -3 -m app
:end
endlocal