--- a/eric7/Plugins/PluginEricdoc.py Fri Jun 17 17:34:46 2022 +0200 +++ b/eric7/Plugins/PluginEricdoc.py Fri Jun 17 17:59:57 2022 +0200 @@ -108,24 +108,23 @@ "version": "", "versionCleanup": (0, -1), }) - # 2.2 location starting with 6.3.0 (Linux and macOS) - exe = os.path.join( - Utilities.getQtBinariesPath(libexec=True), - Utilities.generateQtToolName('qhelpgenerator') - ) - if Utilities.isWindowsPlatform(): - exe += '.exe' - dataList.append({ - "programEntry": True, - "header": QCoreApplication.translate( - "EricdocPlugin", "Qt Help Tools"), - "exe": exe, - "versionCommand": '-v', - "versionStartsWith": 'Qt', - "versionPosition": -1, - "version": "", - "versionCleanup": (0, -1), - }) + if not Utilities.isWindowsPlatform(): + # 2.2 location starting with 6.3.0 (Linux and macOS) + exe = os.path.join( + Utilities.getQtBinariesPath(libexec=True), + Utilities.generateQtToolName('qhelpgenerator') + ) + dataList.append({ + "programEntry": True, + "header": QCoreApplication.translate( + "EricdocPlugin", "Qt Help Tools"), + "exe": exe, + "versionCommand": '-v', + "versionStartsWith": 'Qt', + "versionPosition": -1, + "version": "", + "versionCleanup": (0, -1), + }) return dataList