ProgramsDialog: added a section for the MicroPython tools.

Sat, 02 Nov 2019 18:19:24 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 02 Nov 2019 18:19:24 +0100
changeset 7326
eab46b63ed91
parent 7325
f05a814aeddc
child 7327
71883ddcb762

ProgramsDialog: added a section for the MicroPython tools.

eric6/Preferences/ProgramsDialog.py file | annotate | diff | comparison | revisions
diff -r f05a814aeddc -r eab46b63ed91 eric6/Preferences/ProgramsDialog.py
--- a/eric6/Preferences/ProgramsDialog.py	Fri Nov 01 18:58:46 2019 +0100
+++ b/eric6/Preferences/ProgramsDialog.py	Sat Nov 02 18:19:24 2019 +0100
@@ -290,6 +290,23 @@
         self.__createEntry(
             self.tr("Source Highlighter - Pygments"), text, version)
         
+        # 10. do the MicroPython related entries
+        exe = Preferences.getMicroPython("MpyCrossCompiler")
+        if not exe:
+            exe = "mpy-cross"
+        self.__createProgramEntry(
+            self.tr("MicroPython - MPY Cross Compiler"), exe, '--version',
+            'MicroPython', 1)
+        self.__createProgramEntry(
+            self.tr("MicroPython - ESP Tool"), sys.executable, 'version',
+            'esptool', -1, exeModule=['-m', 'esptool'])
+        exe = Preferences.getMicroPython("DfuUtilPath")
+        if not exe:
+            exe = "dfu-util"
+        self.__createProgramEntry(
+            self.tr("MicroPython - PyBoard Flasher"), exe, '--version',
+            'dfu-util', -1)
+        
         # 10. do the plugin related programs
         pm = e5App().getObject("PluginManager")
         for info in pm.getPluginExeDisplayData():

eric ide

mercurial