MCPcopy Index your code
hub / github.com/python/cpython / run

Function run

Android/android.py:113–125  ·  view source on GitHub ↗
(command, *, host=None, env=None, log=True, **kwargs)

Source from the content-addressed store, hash-verified

111
112
113def run(command, *, host=None, env=None, log=True, **kwargs):
114 kwargs.setdefault("check", True)
115 if env is None:
116 env = os.environ.copy()
117
118 if host:
119 host_env = android_env(host)
120 print_env(host_env)
121 env.update(host_env)
122
123 if log:
124 print(">", join_command(command))
125 return subprocess.run(command, env=env, **kwargs)
126
127
128# Format a command so it can be copied into a shell. Like shlex.join, but also

Callers 11

configure_build_pythonFunction · 0.70
make_build_pythonFunction · 0.70
downloadFunction · 0.70
configure_host_pythonFunction · 0.70
make_host_pythonFunction · 0.70
setup_ciFunction · 0.70
setup_sdkFunction · 0.70
build_testbedFunction · 0.70
stop_appFunction · 0.70
packageFunction · 0.70
ciFunction · 0.70

Calls 7

android_envFunction · 0.85
print_envFunction · 0.70
join_commandFunction · 0.70
setdefaultMethod · 0.45
copyMethod · 0.45
updateMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected