Fixed a Windows specific issue causing the dependency tree to fail. eric7

Thu, 24 Mar 2022 19:27:29 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 24 Mar 2022 19:27:29 +0100
branch
eric7
changeset 8998
4644064d4454
parent 8997
d8946c2a22b5
child 8999
723f61499a79

Fixed a Windows specific issue causing the dependency tree to fail.

eric7/PipInterface/Pip.py file | annotate | diff | comparison | revisions
diff -r d8946c2a22b5 -r 4644064d4454 eric7/PipInterface/Pip.py
--- a/eric7/PipInterface/Pip.py	Wed Mar 23 20:21:42 2022 +0100
+++ b/eric7/PipInterface/Pip.py	Thu Mar 24 19:27:29 2022 +0100
@@ -961,12 +961,12 @@
                     args.append("--reverse")
                 
                 proc = QProcess()
-                proc.start(sys.executable, args)
+                proc.start(sys.executable.replace("w.exe", ".exe"), args)
                 if proc.waitForStarted(15000) and proc.waitForFinished(30000):
                     output = str(proc.readAllStandardOutput(),
                                  Preferences.getSystem("IOEncoding"),
                                  'replace').strip()
                     with contextlib.suppress(json.JSONDecodeError):
                         dependencies = json.loads(output)
-           
+        
         return dependencies

eric ide

mercurial