MCPcopy Create free account
hub / github.com/iovisor/bcc / has_executable

Function has_executable

tests/python/utils.py:15–19  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

13logger = logging.getLogger()
14
15def has_executable(name):
16 path = shutil.which(name)
17 if path is None:
18 raise Exception(name + ": command not found")
19 return path
20
21# This is a decorator that will allow for logging tests, but flagging them as
22# "known to fail". These tests legitimately fail and represent actual bugs, but

Callers 1

__init__Method · 0.85

Calls 1

whichMethod · 0.80

Tested by

no test coverage detected