133 docsPath = QLibraryInfo.location(QLibraryInfo.DocumentationPath) |
133 docsPath = QLibraryInfo.location(QLibraryInfo.DocumentationPath) |
134 if ( |
134 if ( |
135 not os.path.isdir(docsPath) or |
135 not os.path.isdir(docsPath) or |
136 len(QDir(docsPath).entryList(["*.qch"])) == 0 |
136 len(QDir(docsPath).entryList(["*.qch"])) == 0 |
137 ): |
137 ): |
138 # Qt installer is a bit buggy; it's missing a symbolic link |
|
139 docsPathList = QDir.fromNativeSeparators(docsPath).split("/") |
138 docsPathList = QDir.fromNativeSeparators(docsPath).split("/") |
140 docsPath = os.sep.join( |
139 docsPath = os.sep.join( |
141 docsPathList[:-3] + |
140 docsPathList[:-3] + |
142 ["Docs", "Qt-{0}.{1}".format(*qVersionTuple())]) |
141 ["Docs", "Qt-{0}.{1}".format(*qVersionTuple())]) |
143 docsPath = QDir(docsPath) |
142 docsPath = QDir(docsPath) |