src/eric7/MicroPython/Devices/CircuitPythonUpdater/CircuitPythonUpdaterInterface.py

branch
mpy_network
changeset 9869
fb2c71c1c7d7
parent 9817
640b6c23d97b
child 9870
0399d3607829
diff -r 467288cffee2 -r fb2c71c1c7d7 src/eric7/MicroPython/Devices/CircuitPythonUpdater/CircuitPythonUpdaterInterface.py
--- 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