fix(webui): resolve build runner executable

This commit is contained in:
chengyongru
2026-07-19 23:59:34 +08:00
committed by chengyongru
parent 462a0dfb0f
commit e3de01c9f6
2 changed files with 18 additions and 3 deletions
+2 -2
View File
@@ -266,8 +266,8 @@ def ensure_webui_bundle(
def pick_webui_build_runner() -> str | None:
"""Pick the frontend package manager used to build the WebUI."""
for candidate in ("bun", "npm"):
if shutil.which(candidate):
return candidate
if executable := shutil.which(candidate):
return executable
return None