diff --git a/comfy_cli/command/custom_nodes/command.py b/comfy_cli/command/custom_nodes/command.py index d826c6c3..af2cc732 100644 --- a/comfy_cli/command/custom_nodes/command.py +++ b/comfy_cli/command/custom_nodes/command.py @@ -708,7 +708,7 @@ def validate_node_for_publishing(): typer.echo("Running security checks...") try: # Run ruff check with security rules and --exit-zero to only warn - cmd = ["ruff", "check", ".", "-q", "--select", "S102,S307,E702", "--exit-zero"] + cmd = [sys.executable, "-m", "ruff", "check", ".", "-q", "--select", "S102,S307,E702", "--exit-zero"] result = subprocess.run(cmd, capture_output=True, text=True) if result.stdout: