(exe_name)
| 7 | from packaging.version import Version |
| 8 | |
| 9 | def __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 | |
| 25 | def __call_process(arg): |
| 26 | exe = __lookup_cppcheck_exe('test-signalhandler') |
no test coverage detected