eric7/Plugins/PluginEricdoc.py

branch
eric7
changeset 9154
e8ca7b41a7d8
parent 9138
85f68ca14a7a
child 9155
2efa8d1312cd
equal deleted inserted replaced
9153:506e35e424d5 9154:e8ca7b41a7d8
88 "version": "", 88 "version": "",
89 "versionCleanup": None, 89 "versionCleanup": None,
90 }) 90 })
91 91
92 # 2. Qt Help Generator 92 # 2. Qt Help Generator
93 # 2.1 location before 6.3 (Linux and macOS) and Windows
93 exe = os.path.join( 94 exe = os.path.join(
94 Utilities.getQtBinariesPath(), 95 Utilities.getQtBinariesPath(),
95 Utilities.generateQtToolName('qhelpgenerator') 96 Utilities.generateQtToolName('qhelpgenerator')
96 ) 97 )
97 if Utilities.isWindowsPlatform(): 98 if Utilities.isWindowsPlatform():
105 "versionStartsWith": 'Qt', 106 "versionStartsWith": 'Qt',
106 "versionPosition": -1, 107 "versionPosition": -1,
107 "version": "", 108 "version": "",
108 "versionCleanup": (0, -1), 109 "versionCleanup": (0, -1),
109 }) 110 })
111 # 2.2 location starting with 6.3.0 (Linux and macOS)
112 exe = os.path.join(
113 Utilities.getQtBinariesPath(libexec=True),
114 Utilities.generateQtToolName('qhelpgenerator')
115 )
116 if Utilities.isWindowsPlatform():
117 exe += '.exe'
118 dataList.append({
119 "programEntry": True,
120 "header": QCoreApplication.translate(
121 "EricdocPlugin", "Qt Help Tools"),
122 "exe": exe,
123 "versionCommand": '-v',
124 "versionStartsWith": 'Qt',
125 "versionPosition": -1,
126 "version": "",
127 "versionCleanup": (0, -1),
128 })
110 129
111 return dataList 130 return dataList
112 131
113 132
114 class EricdocPlugin(QObject): 133 class EricdocPlugin(QObject):

eric ide

mercurial