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