@echo off setlocal title Logic Waveform Viewer cd /d "%~dp0" set "PYTHON_EXE=" if exist "%USERPROFILE%\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\pythonw.exe" set "PYTHON_EXE=%USERPROFILE%\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\pythonw.exe" if defined PYTHON_EXE goto python_found where pythonw >nul 2>nul if not errorlevel 1 set "PYTHON_EXE=pythonw" if defined PYTHON_EXE goto python_found where python >nul 2>nul if not errorlevel 1 set "PYTHON_EXE=python" if defined PYTHON_EXE goto python_found echo No usable Python runtime was found. echo Please install Python 3.9 or later. pause exit /b 1 :python_found "%PYTHON_EXE%" "%~dp0parse_logic_gui.py" exit /b %ERRORLEVEL%