MCPcopy Create free account
hub / github.com/bytedance/sonic-cpp / run_r

Function run_r

scripts/tools/draw-decode-encode.py:14–24  ·  view source on GitHub ↗
(cmd)

Source from the content-addressed store, hash-verified

12 exit(1)
13
14def run_r(cmd):
15 print (cmd)
16 try:
17 cmds = cmd.split(' ')
18 data = subprocess.check_output(cmds, stderr=subprocess.STDOUT)
19 except subprocess.CalledProcessError as e:
20 if e.returncode:
21 print (e.output)
22 exit(1)
23
24 return data.decode("utf-8")
25
26def main():
27 argparser = argparse.ArgumentParser(description='Tools to test the performance')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected