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

Function __lookup_cppcheck_exe

test/signal/test-stacktrace.py:5–19  ·  view source on GitHub ↗
(exe_name)

Source from the content-addressed store, hash-verified

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

Callers 1

__call_processFunction · 0.70

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected