MCPcopy Create free account
hub / github.com/ComfyWorkflows/ComfyUI-Launcher / print_process_output

Function print_process_output

server/utils.py:98–101  ·  view source on GitHub ↗
(process)

Source from the content-addressed store, hash-verified

96
97
98def print_process_output(process):
99 for line in iter(process.stdout.readline, b''):
100 print(line.decode(), end='')
101 process.stdout.close()
102
103def run_command(cmd: List[str], cwd: Optional[str] = None, bg: bool = False) -> None:
104 process = subprocess.Popen(" ".join(cmd), cwd=cwd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)

Callers 1

run_commandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected