fix(webui): resolve build runner executable

This commit is contained in:
chengyongru authored and chengyongru committed 2026-07-19 23:59:34 +08:00
1 parent 462a0dfb0f
commit e3de01c9f6
2 files changed
+18 -3

No files matched your search

+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