Fixed code to deal with another bug in Qt installer.

Sat, 19 Mar 2016 15:27:52 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 19 Mar 2016 15:27:52 +0100
changeset 4873
d93871657c5d
parent 4871
521d2c98f656
child 4876
686e69aecdb5

Fixed code to deal with another bug in Qt installer.

Helpviewer/HelpDocsInstaller.py file | annotate | diff | comparison | revisions
--- a/Helpviewer/HelpDocsInstaller.py	Sat Mar 19 14:39:33 2016 +0100
+++ b/Helpviewer/HelpDocsInstaller.py	Sat Mar 19 15:27:52 2016 +0100
@@ -128,7 +128,8 @@
                 QDir.separator() + "qch")
         elif version == 5:
             docsPath = QLibraryInfo.location(QLibraryInfo.DocumentationPath)
-            if not os.path.isdir(docsPath):
+            if not os.path.isdir(docsPath) or \
+                    len(QDir(docsPath).entryList(["*.qch"])) == 0:
                 # Qt installer is a bit buggy; it's missing a symbolic link
                 docsPathList = QDir.fromNativeSeparators(docsPath).split("/")
                 docsPath = os.sep.join(

eric ide

mercurial