eric7/Preferences/ProgramsDialog.py

branch
eric7
changeset 8593
1d66b6af60ed
parent 8358
144a6b854f70
child 8594
f254ab0d42fa
equal deleted inserted replaced
8592:ab8580937d4b 8593:1d66b6af60ed
295 exe = "dfu-util" 295 exe = "dfu-util"
296 self.__createProgramEntry( 296 self.__createProgramEntry(
297 self.tr("MicroPython - PyBoard Flasher"), exe, '--version', 297 self.tr("MicroPython - PyBoard Flasher"), exe, '--version',
298 'dfu-util', -1) 298 'dfu-util', -1)
299 299
300 # 10. do the plugin related programs 300 # 10. do the jedi related entries
301 try:
302 import jedi
303 try:
304 text = os.pathdirname(jedi.__file__)
305 except AttributeError:
306 text = "jedi"
307 try:
308 version = jedi.__version__
309 except AttributeError:
310 version = self.tr("(unknown)")
311 except (ImportError, AttributeError, OSError):
312 text = "jedi"
313 version = ""
314 self.__createEntry(
315 self.tr("Code Assistant - Jedi"), text, version)
316
317 # 11. do the plugin related programs
301 pm = ericApp().getObject("PluginManager") 318 pm = ericApp().getObject("PluginManager")
302 for info in pm.getPluginExeDisplayData(): 319 for info in pm.getPluginExeDisplayData():
303 if info["programEntry"]: 320 if info["programEntry"]:
304 if "exeModule" not in info: 321 if "exeModule" not in info:
305 info["exeModule"] = None 322 info["exeModule"] = None

eric ide

mercurial