DocumentationTools/QtHelpGenerator.py

changeset 6665
adb59475e671
parent 6645
ad476851d7e0
child 6666
06f6e0f24e89
--- a/DocumentationTools/QtHelpGenerator.py	Sun Jan 20 14:41:07 2019 +0100
+++ b/DocumentationTools/QtHelpGenerator.py	Sun Jan 20 19:38:51 2019 +0100
@@ -17,6 +17,7 @@
 
 from Utilities import joinext, relpath, html_encode, getQtBinariesPath, \
     generateQtToolName
+from Globals import qVersionTuple
 
 HelpCollection = r"""<?xml version="1.0" encoding="utf-8" ?>
 <QHelpCollectionProject version="1.0">
@@ -279,7 +280,8 @@
             HelpProjectFile, "-o", os.path.join(self.outputDir, HelpHelpFile)])
         os.remove(HelpProjectFile)
         
-        if self.createCollection:
+        # TODO: do this with qhelpgenerator >= 5.12.0
+        if qVersionTuple() < (5, 12, 0) and self.createCollection:
             sys.stdout.write("Generating QtHelp collection...\n")
             sys.stdout.flush()
             sys.stderr.flush()

eric ide

mercurial