-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_gui.bat
More file actions
38 lines (32 loc) · 762 Bytes
/
run_gui.bat
File metadata and controls
38 lines (32 loc) · 762 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
34
35
36
37
38
@echo off
setlocal
cd /d "%~dp0"
set "PORTABLE_EXE=%~dp0physics_codegen\dist\AxionPhysicsCodegen\AxionPhysicsCodegen.exe"
if exist "%PORTABLE_EXE%" (
start "" "%PORTABLE_EXE%"
exit /b 0
)
if exist "%~dp0physics_codegen\physics_codegen\cli.py" (
cd /d "%~dp0physics_codegen"
)
set "PYW_CMD="
where pyw >nul 2>nul
if %errorlevel%==0 (
set "PYW_CMD=pyw -3"
) else (
where pythonw >nul 2>nul
if %errorlevel%==0 (
set "PYW_CMD=pythonw"
)
)
if "%PYW_CMD%"=="" (
echo Could not find pythonw/pyw for windowless launch.
echo Build the portable app with physics_codegen\build_portable.bat.
echo Use run_doctor.bat to troubleshoot source-mode Python setup.
echo.
pause
exit /b 2
)
%PYW_CMD% -m physics_codegen.cli gui
endlocal
exit /b 0