MCPcopy Create free account
hub / github.com/numpy/numpy / command_info

Function command_info

numpy/distutils/cpuinfo.py:37–44  ·  view source on GitHub ↗
(successful_status=(0,), stacklevel=1, **kw)

Source from the content-addressed store, hash-verified

35 return False, output
36
37def command_info(successful_status=(0,), stacklevel=1, **kw):
38 info = {}
39 for key in kw:
40 ok, output = getoutput(kw[key], successful_status=successful_status,
41 stacklevel=stacklevel+1)
42 if ok:
43 info[key] = output.strip()
44 return info
45
46def command_by_line(cmd, successful_status=(0,), stacklevel=1):
47 ok, output = getoutput(cmd, successful_status=successful_status,

Callers 2

__init__Method · 0.85
__init__Method · 0.85

Calls 2

getoutputFunction · 0.85
stripMethod · 0.80

Tested by

no test coverage detected