PipxInterface/Pipx.py

changeset 59
a5e7feb2310c
parent 49
ec976c5b88ae
child 78
5efcdee9c170
--- a/PipxInterface/Pipx.py	Sat Aug 03 19:37:37 2024 +0200
+++ b/PipxInterface/Pipx.py	Sat Aug 24 15:36:01 2024 +0200
@@ -49,9 +49,11 @@
         @return string containing the pipx version number
         @rtype str
         """
-        from pipx.version import version  # noqa: I102
-
-        return version
+        ok, output = self.runPipxProcess(["--version"])
+        if ok:
+            return output.strip()
+        else:
+            return ""
 
     def getPipxVersionTuple(self):
         """

eric ide

mercurial