eric6/Preferences/ProgramsDialog.py

changeset 7326
eab46b63ed91
parent 7263
c1af2e327675
child 7360
9190402e4505
equal deleted inserted replaced
7325:f05a814aeddc 7326:eab46b63ed91
287 except (ImportError, AttributeError, OSError): 287 except (ImportError, AttributeError, OSError):
288 text = "pygments" 288 text = "pygments"
289 version = "" 289 version = ""
290 self.__createEntry( 290 self.__createEntry(
291 self.tr("Source Highlighter - Pygments"), text, version) 291 self.tr("Source Highlighter - Pygments"), text, version)
292
293 # 10. do the MicroPython related entries
294 exe = Preferences.getMicroPython("MpyCrossCompiler")
295 if not exe:
296 exe = "mpy-cross"
297 self.__createProgramEntry(
298 self.tr("MicroPython - MPY Cross Compiler"), exe, '--version',
299 'MicroPython', 1)
300 self.__createProgramEntry(
301 self.tr("MicroPython - ESP Tool"), sys.executable, 'version',
302 'esptool', -1, exeModule=['-m', 'esptool'])
303 exe = Preferences.getMicroPython("DfuUtilPath")
304 if not exe:
305 exe = "dfu-util"
306 self.__createProgramEntry(
307 self.tr("MicroPython - PyBoard Flasher"), exe, '--version',
308 'dfu-util', -1)
292 309
293 # 10. do the plugin related programs 310 # 10. do the plugin related programs
294 pm = e5App().getObject("PluginManager") 311 pm = e5App().getObject("PluginManager")
295 for info in pm.getPluginExeDisplayData(): 312 for info in pm.getPluginExeDisplayData():
296 if info["programEntry"]: 313 if info["programEntry"]:

eric ide

mercurial