MCPcopy Create free account
hub / github.com/BabitMF/bmf / exec_cmd

Function exec_cmd

bmf/cmd/python_wrapper/wrapper.py:26–33  ·  view source on GitHub ↗
(cmd: str, args)

Source from the content-addressed store, hash-verified

24
25
26def exec_cmd(cmd: str, args):
27 found, cmdpath = find_in_python_root(cmd)
28 if found:
29 # Execute it with all command line arguments.
30 subprocess.call([cmdpath] + args)
31 else:
32 print("cannot find {}".format(os.path.basename(__file__)))
33 exit(1)
34
35
36def run_bmf_graph():

Callers 3

run_bmf_graphFunction · 0.85
trace_format_logFunction · 0.85
module_managerFunction · 0.85

Calls 3

find_in_python_rootFunction · 0.85
callMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected