272 shutil.copy( |
272 shutil.copy( |
273 os.path.join(self.outputDir, HelpProjectFile), self.htmlDir) |
273 os.path.join(self.outputDir, HelpProjectFile), self.htmlDir) |
274 os.chdir(self.htmlDir) |
274 os.chdir(self.htmlDir) |
275 subprocess.call([ |
275 subprocess.call([ |
276 os.path.join(getQtBinariesPath(), "qhelpgenerator"), |
276 os.path.join(getQtBinariesPath(), "qhelpgenerator"), |
277 "source.qhp", "-o", os.path.join(self.outputDir, HelpHelpFile)]) |
277 HelpProjectFile, "-o", os.path.join(self.outputDir, HelpHelpFile)]) |
278 os.remove(HelpProjectFile) |
278 os.remove(HelpProjectFile) |
279 |
279 |
280 if self.createCollection: |
280 if self.createCollection: |
281 sys.stdout.write("Generating QtHelp collection...\n") |
281 sys.stdout.write("Generating QtHelp collection...\n") |
282 sys.stdout.flush() |
282 sys.stdout.flush() |
283 sys.stderr.flush() |
283 sys.stderr.flush() |
284 os.chdir(self.outputDir) |
284 os.chdir(self.outputDir) |
285 subprocess.call([ |
285 subprocess.call([ |
286 os.path.join(getQtBinariesPath(), "qcollectiongenerator"), |
286 os.path.join(getQtBinariesPath(), "qcollectiongenerator"), |
287 "source.qhcp", "-o", "collection.qhc"]) |
287 HelpCollectionProjectFile, "-o", HelpCollectionFile]) |
288 |
288 |
289 os.chdir(cwd) |
289 os.chdir(cwd) |