MCPcopy
hub / github.com/certbot/certbot / subprocess_output_with_print

Function subprocess_output_with_print

tools/venv.py:133–137  ·  view source on GitHub ↗
(cmd, env=None, shell=False)

Source from the content-addressed store, hash-verified

131
132
133def subprocess_output_with_print(cmd, env=None, shell=False):
134 if env is None:
135 env = os.environ
136 print('+ {0}'.format(subprocess.list2cmdline(cmd)) if isinstance(cmd, list) else cmd)
137 return subprocess.check_output(cmd, env=env, shell=shell)
138
139
140def get_venv_python_path(venv_path):

Callers

nothing calls this directly

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected