259 |
259 |
260 cwd = os.getcwd() |
260 cwd = os.getcwd() |
261 # generate the compressed files |
261 # generate the compressed files |
262 shutil.copy(os.path.join(self.outputDir, HelpProjectFile), self.htmlDir) |
262 shutil.copy(os.path.join(self.outputDir, HelpProjectFile), self.htmlDir) |
263 os.chdir(self.htmlDir) |
263 os.chdir(self.htmlDir) |
264 subprocess.call(["qhelpgenerator", "source.qhp", |
264 subprocess.call([os.path.join(getQtBinariesPath(), "qhelpgenerator"), |
265 "-o", os.path.join(self.outputDir, HelpHelpFile)]) |
265 "source.qhp", "-o", os.path.join(self.outputDir, HelpHelpFile)]) |
266 os.remove(HelpProjectFile) |
266 os.remove(HelpProjectFile) |
267 |
267 |
268 if self.createCollection: |
268 if self.createCollection: |
269 sys.stdout.write("Generating QtHelp collection...\n") |
269 sys.stdout.write("Generating QtHelp collection...\n") |
270 sys.stdout.flush() |
270 sys.stdout.flush() |
271 sys.stderr.flush() |
271 sys.stderr.flush() |
272 os.chdir(self.outputDir) |
272 os.chdir(self.outputDir) |
273 subprocess.call(["qcollectiongenerator", "source.qhcp", "-o", "collection.qhc"]) |
273 subprocess.call([os.path.join(getQtBinariesPath(), "qcollectiongenerator"), |
|
274 "source.qhcp", "-o", "collection.qhc"]) |
274 |
275 |
275 os.chdir(cwd) |
276 os.chdir(cwd) |