Plugins/PluginEricdoc.py

changeset 2596
32c4afbe0801
parent 2407
b98cc8ee1142
child 2615
bdc9b4659826
equal deleted inserted replaced
2595:921067c38243 2596:32c4afbe0801
7 Module implementing the Ericdoc plugin. 7 Module implementing the Ericdoc plugin.
8 """ 8 """
9 9
10 import os 10 import os
11 11
12 from PyQt4.QtCore import QObject 12 from PyQt4.QtCore import QObject, QLibraryInfo
13 from PyQt4.QtGui import QDialog, QApplication 13 from PyQt4.QtGui import QDialog, QApplication
14 14
15 from E5Gui.E5Application import e5App 15 from E5Gui.E5Application import e5App
16 16
17 from E5Gui.E5Action import E5Action 17 from E5Gui.E5Action import E5Action
62 "version": "", 62 "version": "",
63 "versionCleanup": None, 63 "versionCleanup": None,
64 }) 64 })
65 65
66 # 2. Qt Help Generator 66 # 2. Qt Help Generator
67 exe = 'qhelpgenerator' 67 exe = os.path.join(QLibraryInfo.location(QLibraryInfo.BinariesPath),
68 'qhelpgenerator')
68 if Utilities.isWindowsPlatform(): 69 if Utilities.isWindowsPlatform():
69 exe += '.exe' 70 exe += '.exe'
70 dataList.append({ 71 dataList.append({
71 "programEntry": True, 72 "programEntry": True,
72 "header": QApplication.translate("EricdocPlugin", 73 "header": QApplication.translate("EricdocPlugin",
78 "version": "", 79 "version": "",
79 "versionCleanup": (0, -1), 80 "versionCleanup": (0, -1),
80 }) 81 })
81 82
82 # 3. Qt Collection Generator 83 # 3. Qt Collection Generator
83 exe = 'qcollectiongenerator' 84 exe = os.path.join(QLibraryInfo.location(QLibraryInfo.BinariesPath),
85 'qcollectiongenerator')
84 if Utilities.isWindowsPlatform(): 86 if Utilities.isWindowsPlatform():
85 exe += '.exe' 87 exe += '.exe'
86 dataList.append({ 88 dataList.append({
87 "programEntry": True, 89 "programEntry": True,
88 "header": QApplication.translate("EricdocPlugin", 90 "header": QApplication.translate("EricdocPlugin",

eric ide

mercurial