Helpviewer/HelpDocsInstaller.py

branch
6_1_x
changeset 4874
8dbca5b1f89c
parent 4872
8f88c4bd5281
child 5389
9b1c800daff3
equal deleted inserted replaced
4872:8f88c4bd5281 4874:8dbca5b1f89c
126 docsPath = QDir( 126 docsPath = QDir(
127 QLibraryInfo.location(QLibraryInfo.DocumentationPath) + 127 QLibraryInfo.location(QLibraryInfo.DocumentationPath) +
128 QDir.separator() + "qch") 128 QDir.separator() + "qch")
129 elif version == 5: 129 elif version == 5:
130 docsPath = QLibraryInfo.location(QLibraryInfo.DocumentationPath) 130 docsPath = QLibraryInfo.location(QLibraryInfo.DocumentationPath)
131 if not os.path.isdir(docsPath): 131 if not os.path.isdir(docsPath) or \
132 len(QDir(docsPath).entryList(["*.qch"])) == 0:
132 # Qt installer is a bit buggy; it's missing a symbolic link 133 # Qt installer is a bit buggy; it's missing a symbolic link
133 docsPathList = QDir.fromNativeSeparators(docsPath).split("/") 134 docsPathList = QDir.fromNativeSeparators(docsPath).split("/")
134 docsPath = os.sep.join( 135 docsPath = os.sep.join(
135 docsPathList[:-3] + 136 docsPathList[:-3] +
136 ["Docs", "Qt-{0}".format(qVersion()[:3])]) 137 ["Docs", "Qt-{0}".format(qVersion()[:3])])

eric ide

mercurial