eric6/WebBrowser/QtHelp/HelpDocsInstaller.py

changeset 7945
76daafe10009
parent 7923
91e843545d9a
child 7960
e8fc383322f7
equal deleted inserted replaced
7941:cf988a30ba47 7945:76daafe10009
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)

eric ide

mercurial