src/eric7/PipInterface/Pip.py

branch
eric7
changeset 10177
27a6e35c64ed
parent 10167
0a62a4bf749c
child 10209
8bb763e85937
--- a/src/eric7/PipInterface/Pip.py	Thu Aug 31 14:07:24 2023 +0200
+++ b/src/eric7/PipInterface/Pip.py	Thu Aug 31 14:49:37 2023 +0200
@@ -1019,10 +1019,7 @@
         if envName:
             interpreter = self.getVirtualenvInterpreter(envName)
             if interpreter:
-                args = [
-                    os.path.join(os.path.dirname(__file__), "pipdeptree.py"),
-                    "--json-tree",
-                ]
+                args = ["-m", "pipdeptree", "--python", interpreter, "--json-tree"]
                 if localPackages:
                     args.append("--local-only")
                 if usersite:
@@ -1031,7 +1028,7 @@
                     args.append("--reverse")
 
                 proc = QProcess()
-                proc.start(interpreter, args)
+                proc.start(PythonUtilities.getPythonExecutable(), args)
                 if proc.waitForStarted(15000) and proc.waitForFinished(30000):
                     output = str(
                         proc.readAllStandardOutput(),

eric ide

mercurial