MCPcopy Create free account
hub / github.com/modelscope/modelscope / run_command_with_popen

Function run_command_with_popen

tests/run.py:156–164  ·  view source on GitHub ↗
(cmd)

Source from the content-addressed store, hash-verified

154
155
156def run_command_with_popen(cmd):
157 with subprocess.Popen(
158 cmd,
159 stdout=subprocess.PIPE,
160 stderr=subprocess.STDOUT,
161 bufsize=1,
162 encoding='utf8') as sub_process:
163 for line in iter(sub_process.stdout.readline, ''):
164 sys.stdout.write(line)
165
166
167def async_run_command_with_popen(cmd, device_id):

Callers 2

run_case_in_envFunction · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…