eric7/Plugins/PluginEricdoc.py

branch
eric7
changeset 9156
aec35836ca4a
parent 9155
2efa8d1312cd
--- a/eric7/Plugins/PluginEricdoc.py	Fri Jun 17 17:59:57 2022 +0200
+++ b/eric7/Plugins/PluginEricdoc.py	Fri Jun 17 18:08:24 2022 +0200
@@ -97,18 +97,19 @@
     )
     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():
+    if os.path.exists(exe):
+        dataList.append({
+            "programEntry": True,
+            "header": QCoreApplication.translate(
+                "EricdocPlugin", "Qt Help Tools"),
+            "exe": exe,
+            "versionCommand": '-v',
+            "versionStartsWith": 'Qt',
+            "versionPosition": -1,
+            "version": "",
+            "versionCleanup": (0, -1),
+        })
+    else:
         # 2.2 location starting with 6.3.0 (Linux and macOS)
         exe = os.path.join(
             Utilities.getQtBinariesPath(libexec=True),

eric ide

mercurial