MCPcopy
hub / github.com/certbot/certbot / subprocess_with_print

Function subprocess_with_print

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

Source from the content-addressed store, hash-verified

124
125
126def subprocess_with_print(cmd, env=None, shell=False):
127 if env is None:
128 env = os.environ
129 print('+ {0}'.format(subprocess.list2cmdline(cmd)) if isinstance(cmd, list) else cmd)
130 subprocess.check_call(cmd, env=env, shell=shell)
131
132
133def subprocess_output_with_print(cmd, env=None, shell=False):

Callers 2

install_packagesFunction · 0.85
create_venvFunction · 0.85

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected