Utilities: fixed an issue determining the tools path for pyside2.

Mon, 22 Jun 2020 17:55:06 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 22 Jun 2020 17:55:06 +0200
changeset 7636
61566f35ab22
parent 7635
0cdead130a81
child 7637
c878e8255972

Utilities: fixed an issue determining the tools path for pyside2.

eric6/Utilities/__init__.py file | annotate | diff | comparison | revisions
--- a/eric6/Utilities/__init__.py	Sun Jun 21 18:26:12 2020 +0200
+++ b/eric6/Utilities/__init__.py	Mon Jun 22 17:55:06 2020 +0200
@@ -1838,14 +1838,11 @@
         return ""
     
     if isWindowsPlatform():
-        pysideInterpreters = checkPyside(variant)
-        interpreterIndex = sys.version_info[0] - 2
-        hasPyside = pysideInterpreters[interpreterIndex]
+        hasPyside = checkPyside(variant)
         if not hasPyside:
             return ""
         
-        if interpreterIndex == 1:
-            venvName = Preferences.getDebugger("Python3VirtualEnv")
+        venvName = Preferences.getDebugger("Python3VirtualEnv")
         interpreter = e5App().getObject(
             "VirtualEnvManager").getVirtualenvInterpreter(venvName)
         prefix = os.path.dirname(interpreter)

eric ide

mercurial