Use NiceGUI native mode (pywebview) instead of the default browser so Desktop launchers get one dedicated window without existing tabs. Add --browser / --no-browser overrides. Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>
13 lines
407 B
Batchfile
13 lines
407 B
Batchfile
@echo off
|
|
REM Double-click launcher with visible console (useful for troubleshooting).
|
|
REM Default: single native app window. To use the browser instead, add --browser
|
|
setlocal
|
|
cd /d "%~dp0\.."
|
|
set PORT=8080
|
|
|
|
if exist ".venv\Scripts\python.exe" (
|
|
".venv\Scripts\python.exe" -m xlsx_clean.web_app --host 127.0.0.1 --port %PORT% %*
|
|
) else (
|
|
py -3 -m xlsx_clean.web_app --host 127.0.0.1 --port %PORT% %*
|
|
)
|