MCPcopy Index your code
hub / github.com/microsoft/Cream / run_cmd

Function run_cmd

TinyViT/utils.py:334–340  ·  view source on GitHub ↗
(cmd, default=None)

Source from the content-addressed store, hash-verified

332
333
334def run_cmd(cmd, default=None):
335 try:
336 return subprocess.check_output(cmd.split(), universal_newlines=True).strip()
337 except:
338 if default is None:
339 raise
340 return default
341
342
343def get_git_info():

Callers 1

get_git_infoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected