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) |
189 |
188 |
190 return False |
189 return False |
191 |
190 |
192 def __installEric6Doc(self, engine): |
191 def __installEric6Doc(self, engine): |
193 """ |
192 """ |
194 Private method to install/update the eric6 help documentation. |
193 Private method to install/update the eric help documentation. |
195 |
194 |
196 @param engine reference to the help engine (QHelpEngineCore) |
195 @param engine reference to the help engine (QHelpEngineCore) |
197 @return flag indicating success (boolean) |
196 @return flag indicating success (boolean) |
198 """ |
197 """ |
199 versionKey = "eric6_ide" |
198 versionKey = "eric6_ide" |