MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / __lookup_cppcheck_exe

Function __lookup_cppcheck_exe

test/signal/test-signalhandler.py:9–23  ·  view source on GitHub ↗
(exe_name)

Source from the content-addressed store, hash-verified

7from packaging.version import Version
8
9def __lookup_cppcheck_exe(exe_name):
10 # path the script is located in
11 script_path = os.path.dirname(os.path.realpath(__file__))
12
13 if sys.platform == "win32":
14 exe_name += ".exe"
15
16 for base in (script_path + '/../../', './'):
17 for path in ('', 'bin/', 'bin/debug/'):
18 exe_path = base + path + exe_name
19 if os.path.isfile(exe_path):
20 print("using '{}'".format(exe_path))
21 return exe_path
22
23 return None
24
25def __call_process(arg):
26 exe = __lookup_cppcheck_exe('test-signalhandler')

Callers 1

__call_processFunction · 0.70

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected