Skip to content

Commit c555758

Browse files
committed
fix(runtime): restrict ComfyUI directory test
1 parent 4fc683a commit c555758

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/comfy_script/runtime/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def start_comfyui(comfyui: Path | str = None, args: ComfyUIArgs | None = None, *
185185

186186
if comfyui is None:
187187
default_comfyui = Path(__file__).resolve().parents[5]
188-
if (default_comfyui / 'main.py').exists():
188+
if (default_comfyui / 'comfy_extras').exists() and (default_comfyui / 'main.py').exists():
189189
comfyui = default_comfyui
190190
else:
191191
try:

0 commit comments

Comments
 (0)