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():
p = pathlib.Path(sys.argv[0]).parent.parent
for ext in ('.exe', ''):
p1 = os.path.join(p, 'premiumaddon' + ext)
p2 = os.path.join(p, 'cppcheck' + ext)
if os.path.isfile(p1) and os.path.isfile(p2):
print(p1)
return p1
p1 = os.path.join(p, 'premiumaddon')
p2 = os.path.join(p, 'cppcheck')
if os.path.isfile(p1) and os.path.isfile(p2):
return p1
return None