PipxInterface/Pipx.py

changeset 23
4c18addf12b2
parent 19
70b187d5a9df
child 32
b7a3ae7519ba
--- a/PipxInterface/Pipx.py	Fri Jun 28 19:30:03 2024 +0200
+++ b/PipxInterface/Pipx.py	Sat Jun 29 17:31:16 2024 +0200
@@ -531,3 +531,14 @@
         res = dia.startProcess(self.__getPipxExecutable(), args)
         if res:
             dia.exec()
+
+    def ensurePath(self):
+        """
+        Public method to ensure that the directory where pipx stores apps is
+        in your PATH environment variable.
+        """
+        args = ["ensurepath"]
+        dia = PipxExecDialog(self.tr("Ensure PATH Modifications"))
+        res = dia.startProcess(self.__getPipxExecutable(), args)
+        if res:
+            dia.exec()

eric ide

mercurial