CircuitPython updater mpy_network

Fri, 10 Mar 2023 18:04:52 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 10 Mar 2023 18:04:52 +0100
branch
mpy_network
changeset 9869
fb2c71c1c7d7
parent 9868
467288cffee2
child 9870
0399d3607829

CircuitPython updater
- Added a menu entry to show the path used by 'circup' to store the downloaded bundle files.

src/eric7/MicroPython/Devices/CircuitPythonUpdater/CircuitPythonUpdaterInterface.py file | annotate | diff | comparison | revisions
--- a/src/eric7/MicroPython/Devices/CircuitPythonUpdater/CircuitPythonUpdaterInterface.py	Fri Mar 10 18:04:06 2023 +0100
+++ b/src/eric7/MicroPython/Devices/CircuitPythonUpdater/CircuitPythonUpdaterInterface.py	Fri Mar 10 18:04:52 2023 +0100
@@ -117,6 +117,8 @@
         menu.addSeparator()
         menu.addAction(self.tr("Add Bundle"), self.__addBundle)
         menu.addAction(self.tr("Remove Bundles"), self.__removeBundle)
+        menu.addSeparator()
+        menu.addAction(self.tr("Show Local Cache Path"), self.__showCachePath)
 
     @pyqtSlot()
     def __aboutCircup(self):
@@ -655,6 +657,21 @@
         dlg = RequirementsDialog(devicePath=devicePath)
         dlg.exec()
 
+    @pyqtSlot()
+    def __showCachePath(self):
+        """
+        Private slot to show the path used by 'circup' to store the downloaded bundles.
+        """
+        EricMessageBox.information(
+            None,
+            self.tr("Show Local Cache Path"),
+            self.tr(
+                "<p><b>circup</b> stores the downloaded CircuitPython bundles in this"
+                " directory.</p><p>{0}</p>"
+            ).format(circup.DATA_DIR),
+        )
+        
+
 
 def isCircupAvailable():
     """

eric ide

mercurial