2026-04-24 15:10:48 +01:00
|
|
|
param(
|
|
|
|
|
[string]$BindHost = "127.0.0.1",
|
|
|
|
|
[int]$Port = 8000,
|
2026-04-26 04:23:37 +01:00
|
|
|
[switch]$Reload,
|
|
|
|
|
[ValidateSet("auto", "show", "hide")]
|
|
|
|
|
[string]$QueueUI = "auto"
|
2026-04-24 15:10:48 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
$ErrorActionPreference = "Stop"
|
|
|
|
|
|
|
|
|
|
$repoRoot = Split-Path -Parent $PSScriptRoot
|
|
|
|
|
$python = Join-Path $repoRoot ".venv\Scripts\python.exe"
|
|
|
|
|
if (-not (Test-Path $python)) {
|
|
|
|
|
$python = "python"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$args = @(
|
|
|
|
|
(Join-Path $repoRoot "scripts\run_gui.py"),
|
|
|
|
|
"--host", $BindHost,
|
2026-04-26 04:23:37 +01:00
|
|
|
"--port", $Port,
|
|
|
|
|
"--queue-ui", $QueueUI
|
2026-04-24 15:10:48 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
if ($Reload) {
|
|
|
|
|
$args += "--reload"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
& $python @args
|