src/eric7/WebBrowser/QtHelp/HelpDocsInstaller.py

branch
eric7
changeset 9286
f6f950e4c8f0
parent 9221
bf71ee032bb4
child 9413
80c06d472826
--- a/src/eric7/WebBrowser/QtHelp/HelpDocsInstaller.py	Wed Aug 10 19:32:28 2022 +0200
+++ b/src/eric7/WebBrowser/QtHelp/HelpDocsInstaller.py	Mon Aug 15 14:08:34 2022 +0200
@@ -199,7 +199,7 @@
             docsPath = pathlib.Path(
                 QLibraryInfo.path(QLibraryInfo.LibraryPath.DocumentationPath)
             )
-            if not docsPath.is_dir() or len(docsPath.glob("*.qch")) == 0:
+            if not docsPath.is_dir() or len(list(docsPath.glob("*.qch"))) == 0:
                 docsPath = (
                     docsPath.parents[2] / "Docs" / "Qt-{0}.{1}".format(*qVersionTuple())
                 )
@@ -207,7 +207,7 @@
             # unsupported Qt version
             return False
 
-        files = docsPath.glob("*.qch")
+        files = list(docsPath.glob("*.qch"))
         if not files:
             engine.setCustomValue(versionKey, "|")
             return False
@@ -271,7 +271,7 @@
 
         docsPath = pathlib.Path(getConfig("ericDocDir")) / "Help"
 
-        files = docsPath.glob("*.qch")
+        files = list(docsPath.glob("*.qch"))
         if not files:
             engine.setCustomValue(versionKey, "|")
             return False

eric ide

mercurial