Skip to content

Commit 1f9eade

Browse files
[fix] resolve circular import issue by moving pr_command import after app definition
1 parent 29e235c commit 1f9eade

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

comfy_cli/cmdline.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from comfy_cli import constants, env_checker, logging, tracking, ui, utils
1313
from comfy_cli.command import custom_nodes
1414
from comfy_cli.command import install as install_inner
15-
from comfy_cli.command import pr_command
1615
from comfy_cli.command import run as run_inner
1716
from comfy_cli.command.install import validate_version
1817
from comfy_cli.command.launch import launch as launch_command
@@ -666,5 +665,9 @@ def standalone(
666665
app.add_typer(models_command.app, name="model", help="Manage models.")
667666
app.add_typer(custom_nodes.app, name="node", help="Manage custom nodes.")
668667
app.add_typer(custom_nodes.manager_app, name="manager", help="Manage ComfyUI-Manager.")
668+
669+
# Import pr_command here to avoid circular imports
670+
from comfy_cli.command import pr_command
671+
669672
app.add_typer(pr_command.app, name="pr-cache", help="Manage PR cache.")
670673
app.add_typer(tracking.app, name="tracking", help="Manage analytics tracking settings.")

0 commit comments

Comments
 (0)