(exe_name)
| 3 | import sys |
| 4 | |
| 5 | def __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 | |
| 21 | def __call_process(): |
| 22 | exe = __lookup_cppcheck_exe('test-stacktrace') |
no test coverage detected