266 "pip", |
266 "pip", |
267 1, |
267 1, |
268 exeModule=["-m", "pip"], |
268 exeModule=["-m", "pip"], |
269 ) |
269 ) |
270 |
270 |
271 # 6. do the CORBA and Protobuf programs |
271 # 6. do the spell checking entry |
272 # 6a. omniORB |
|
273 exe = Preferences.getCorba("omniidl") |
|
274 if not exe: |
|
275 exe = "omniidl" |
|
276 if Utilities.isWindowsPlatform(): |
|
277 exe += ".exe" |
|
278 self.__createProgramEntry( |
|
279 self.tr("CORBA IDL Compiler"), exe, "-V", "omniidl", -1 |
|
280 ) |
|
281 # 6b. protobuf |
|
282 exe = Preferences.getProtobuf("protoc") |
|
283 if not exe: |
|
284 exe = "protoc" |
|
285 if Utilities.isWindowsPlatform(): |
|
286 exe += ".exe" |
|
287 self.__createProgramEntry( |
|
288 self.tr("Protobuf Compiler"), exe, "--version", "libprotoc", -1 |
|
289 ) |
|
290 # 6c. grpc |
|
291 exe = Preferences.getProtobuf("grpcPython") |
|
292 if not exe: |
|
293 exe = Globals.getPythonExecutable() |
|
294 self.__createProgramEntry( |
|
295 self.tr("gRPC Compiler"), |
|
296 exe, |
|
297 "--version", |
|
298 "libprotoc", |
|
299 -1, |
|
300 exeModule=["-m", "grpc_tools.protoc"], |
|
301 ) |
|
302 |
|
303 # 7. do the spell checking entry |
|
304 try: |
272 try: |
305 import enchant # __IGNORE_WARNING_I10__ |
273 import enchant # __IGNORE_WARNING_I10__ |
306 |
274 |
307 try: |
275 try: |
308 text = os.path.dirname(enchant.__file__) |
276 text = os.path.dirname(enchant.__file__) |
315 except (ImportError, AttributeError, OSError): |
283 except (ImportError, AttributeError, OSError): |
316 text = "enchant" |
284 text = "enchant" |
317 version = "" |
285 version = "" |
318 self.__createEntry(self.tr("Spell Checker - PyEnchant"), text, version) |
286 self.__createEntry(self.tr("Spell Checker - PyEnchant"), text, version) |
319 |
287 |
320 # 8. do the pygments entry |
288 # 7. do the pygments entry |
321 try: |
289 try: |
322 import pygments # __IGNORE_WARNING_I10__ |
290 import pygments # __IGNORE_WARNING_I10__ |
323 |
291 |
324 try: |
292 try: |
325 text = os.path.dirname(pygments.__file__) |
293 text = os.path.dirname(pygments.__file__) |
332 except (ImportError, AttributeError, OSError): |
300 except (ImportError, AttributeError, OSError): |
333 text = "pygments" |
301 text = "pygments" |
334 version = "" |
302 version = "" |
335 self.__createEntry(self.tr("Source Highlighter - Pygments"), text, version) |
303 self.__createEntry(self.tr("Source Highlighter - Pygments"), text, version) |
336 |
304 |
337 # 9. do the MicroPython related entries |
305 # 8. do the MicroPython related entries |
338 exe = Preferences.getMicroPython("MpyCrossCompiler") |
306 exe = Preferences.getMicroPython("MpyCrossCompiler") |
339 if not exe: |
307 if not exe: |
340 exe = "mpy-cross" |
308 exe = "mpy-cross" |
341 self.__createProgramEntry( |
309 self.__createProgramEntry( |
342 self.tr("MicroPython - MPY Cross Compiler"), |
310 self.tr("MicroPython - MPY Cross Compiler"), |
379 except (ImportError, AttributeError, OSError): |
347 except (ImportError, AttributeError, OSError): |
380 text = "jedi" |
348 text = "jedi" |
381 version = "" |
349 version = "" |
382 self.__createEntry(self.tr("Code Assistant - Jedi"), text, version) |
350 self.__createEntry(self.tr("Code Assistant - Jedi"), text, version) |
383 |
351 |
384 # 11. do the plugin related programs |
352 # 10. do the plugin related programs |
385 pm = ericApp().getObject("PluginManager") |
353 pm = ericApp().getObject("PluginManager") |
386 for info in pm.getPluginExeDisplayData(): |
354 for info in pm.getPluginExeDisplayData(): |
387 if info["programEntry"]: |
355 if info["programEntry"]: |
388 if "exeModule" not in info: |
356 if "exeModule" not in info: |
389 info["exeModule"] = None |
357 info["exeModule"] = None |