Update comfy_on_disk function to include additional candidate paths for ComfyUI detection

- Added a loop to check for the presence of ComfyUI in specified candidate paths, enhancing the logic for determining if ComfyUI is installed on disk.
- This change improves the accuracy of installation state reporting by expanding the search for ComfyUI binaries.
This commit is contained in:
Leonid Pershin
2026-08-21 12:47:37 +03:00
parent d785f47534
commit f8ce9d1981
+1
View File
@@ -428,6 +428,7 @@ def comfy_on_disk() -> bool:
return True return True
if override in ("0", "false", "no"): if override in ("0", "false", "no"):
return False return False
for cand in (
Path("/mnt/swarm_data/dlbackend/ComfyUI/venv/bin/python"), Path("/mnt/swarm_data/dlbackend/ComfyUI/venv/bin/python"),
Path("/mnt/swarm_data/dlbackend/ComfyUI/main.py"), Path("/mnt/swarm_data/dlbackend/ComfyUI/main.py"),
Path("/opt/swarmui/dlbackend/ComfyUI/venv/bin/python"), Path("/opt/swarmui/dlbackend/ComfyUI/venv/bin/python"),