213 self.__createProgramEntry( |
213 self.__createProgramEntry( |
214 self.tr("Resource Compiler (Ruby, Qt4)"), |
214 self.tr("Resource Compiler (Ruby, Qt4)"), |
215 Utilities.isWindowsPlatform() and "rbrcc.exe" or "rbrcc", |
215 Utilities.isWindowsPlatform() and "rbrcc.exe" or "rbrcc", |
216 '-version', 'Ruby Resource Compiler', -1) |
216 '-version', 'Ruby Resource Compiler', -1) |
217 |
217 |
218 # 5. do the CORBA and Protobuf programs |
218 # 5. do the Conda program(s) |
219 # 5a. omniORB |
219 exe = Preferences.getConda("CondaExecutable") |
|
220 if not exe: |
|
221 exe = "conda" |
|
222 if Utilities.isWindowsPlatform(): |
|
223 exe += ".exe" |
|
224 self.__createProgramEntry( |
|
225 self.tr("conda Manager"), exe, '--version', 'conda', -1) |
|
226 |
|
227 # 6. do the CORBA and Protobuf programs |
|
228 # 6a. omniORB |
220 exe = Preferences.getCorba("omniidl") |
229 exe = Preferences.getCorba("omniidl") |
221 if not exe: |
230 if not exe: |
222 exe = "omniidl" |
231 exe = "omniidl" |
223 if Utilities.isWindowsPlatform(): |
232 if Utilities.isWindowsPlatform(): |
224 exe += ".exe" |
233 exe += ".exe" |
225 self.__createProgramEntry( |
234 self.__createProgramEntry( |
226 self.tr("CORBA IDL Compiler"), exe, '-V', 'omniidl', -1) |
235 self.tr("CORBA IDL Compiler"), exe, '-V', 'omniidl', -1) |
227 # 5b. protobuf |
236 # 6b. protobuf |
228 exe = Preferences.getProtobuf("protoc") |
237 exe = Preferences.getProtobuf("protoc") |
229 if not exe: |
238 if not exe: |
230 exe = "protoc" |
239 exe = "protoc" |
231 if Utilities.isWindowsPlatform(): |
240 if Utilities.isWindowsPlatform(): |
232 exe += ".exe" |
241 exe += ".exe" |
233 self.__createProgramEntry( |
242 self.__createProgramEntry( |
234 self.tr("Protobuf Compiler"), exe, '--version', 'libprotoc', -1) |
243 self.tr("Protobuf Compiler"), exe, '--version', 'libprotoc', -1) |
235 # 5c. grpc |
244 # 6c. grpc |
236 exe = Preferences.getProtobuf("grpcPython") |
245 exe = Preferences.getProtobuf("grpcPython") |
237 if not exe: |
246 if not exe: |
238 exe = sys.executable |
247 exe = sys.executable |
239 self.__createProgramEntry( |
248 self.__createProgramEntry( |
240 self.tr("gRPC Compiler"), exe, '--version', 'libprotoc', -1, |
249 self.tr("gRPC Compiler"), exe, '--version', 'libprotoc', -1, |
241 exeModule=['-m', 'grpc_tools.protoc']) |
250 exeModule=['-m', 'grpc_tools.protoc']) |
242 |
251 |
243 # 6. do the spell checking entry |
252 # 7. do the spell checking entry |
244 try: |
253 try: |
245 import enchant |
254 import enchant |
246 try: |
255 try: |
247 text = os.path.dirname(enchant.__file__) |
256 text = os.path.dirname(enchant.__file__) |
248 except AttributeError: |
257 except AttributeError: |
272 text = "pygments" |
281 text = "pygments" |
273 version = "" |
282 version = "" |
274 self.__createEntry( |
283 self.__createEntry( |
275 self.tr("Source Highlighter - Pygments"), text, version) |
284 self.tr("Source Highlighter - Pygments"), text, version) |
276 |
285 |
277 # do the plugin related programs |
286 # 9. do the plugin related programs |
278 pm = e5App().getObject("PluginManager") |
287 pm = e5App().getObject("PluginManager") |
279 for info in pm.getPluginExeDisplayData(): |
288 for info in pm.getPluginExeDisplayData(): |
280 if info["programEntry"]: |
289 if info["programEntry"]: |
281 if "exeModule" not in info: |
290 if "exeModule" not in info: |
282 info["exeModule"] = None |
291 info["exeModule"] = None |