Revert "cppcheckdata: a bit better handling for windows"

This reverts commit ef6bbcb6ad.
This commit is contained in:
Daniel Marjamäki 2022-02-23 22:38:26 +01:00
parent ef6bbcb6ad
commit f68b219300
1 changed files with 4 additions and 7 deletions

View File

@ -1370,11 +1370,8 @@ def reportSummary(dumpfile, summary_type, summary_data):
def get_path_premium_addon(): def get_path_premium_addon():
p = pathlib.Path(sys.argv[0]).parent.parent p = pathlib.Path(sys.argv[0]).parent.parent
p1 = os.path.join(p, 'premiumaddon')
for ext in ('.exe', ''): p2 = os.path.join(p, 'cppcheck')
p1 = os.path.join(p, 'premiumaddon' + ext)
p2 = os.path.join(p, 'cppcheck' + ext)
if os.path.isfile(p1) and os.path.isfile(p2): if os.path.isfile(p1) and os.path.isfile(p2):
print(p1)
return p1 return p1
return None return None