-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlaunch.bat
More file actions
28 lines (24 loc) · 775 Bytes
/
Copy pathlaunch.bat
File metadata and controls
28 lines (24 loc) · 775 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
@echo off
REM Xenosaga I Extractor — Windows double-click launcher.
REM Starts the local GUI on a free port and opens your browser.
REM Zero dependencies beyond Python itself — the kit is stdlib-only.
setlocal
cd /d "%~dp0"
REM Prefer the Windows Python launcher; fall back to plain `python` on PATH.
where py >nul 2>nul && (
py -3 gui.py %*
goto :done
)
where python >nul 2>nul && (
python gui.py %*
goto :done
)
echo Python 3 was not found on your PATH.
echo Install Python 3.9 or newer from https://www.python.org/downloads/
echo (make sure to tick "Add Python to PATH" during install),
echo then double-click this launcher again.
pause
exit /b 1
:done
REM If gui.py errored out, keep the window open so the user can see why.
if errorlevel 1 pause