MCPcopy Create free account
hub / github.com/ChromeDevTools/devtools-frontend / exec_command

Function exec_command

scripts/deps/manage_node_deps.py:61–70  ·  view source on GitHub ↗
(cmd)

Source from the content-addressed store, hash-verified

59
60
61def exec_command(cmd):
62 try:
63 new_env = os.environ.copy()
64 cmd_proc_result = subprocess.check_call(
65 cmd, cwd=devtools_paths.devtools_root_path(), env=new_env)
66 except Exception as error:
67 print(error)
68 return True
69
70 return False
71
72
73def ensure_licenses():

Callers 3

ensure_licensesFunction · 0.85
apply_patchesFunction · 0.85
run_npm_commandFunction · 0.85

Calls 2

printFunction · 0.85
copyMethod · 0.45

Tested by

no test coverage detected