PipxInterface/PipxWidget.py

changeset 23
4c18addf12b2
parent 17
8c52c75a860c
child 31
17e37d4ebe42
--- a/PipxInterface/PipxWidget.py	Fri Jun 28 19:30:03 2024 +0200
+++ b/PipxInterface/PipxWidget.py	Sat Jun 29 17:31:16 2024 +0200
@@ -168,6 +168,10 @@
             self.tr("Standalone Interpreters"), self.__showInterpreters
         )
         self.__pipxMenu.addSeparator()
+        self.__pipxMenu.addAction(
+            self.tr("Ensure PATH Modifications"), self.__ensurePath
+        )
+        self.__pipxMenu.addSeparator()
         self.__pipxMenu.addAction(self.tr("Configure..."), self.__pipxConfigure)
 
         self.__pipxMenu.aboutToShow.connect(self.__aboutToShowPipxMenu)
@@ -409,6 +413,14 @@
         """
         ericApp().getObject("UserInterface").showPreferences("pipxPage")
 
+    @pyqtSlot()
+    def __ensurePath(self):
+        """
+        Private slot to ensure that the directory where pipx stores apps is
+        in your PATH environment variable.
+        """
+        self.__pipx.ensurePath()
+
     #######################################################################
     ## Main widget related methods below
     #######################################################################

eric ide

mercurial