Fixed an issue determining the path to the pyside UI compiler on Windows systems. eric7

Sun, 17 Apr 2022 19:34:09 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 17 Apr 2022 19:34:09 +0200
branch
eric7
changeset 9027
f259edcf185a
parent 9026
2cba3f220ef5
child 9028
b3a7f0368163

Fixed an issue determining the path to the pyside UI compiler on Windows systems.

eric7/Utilities/__init__.py file | annotate | diff | comparison | revisions
--- a/eric7/Utilities/__init__.py	Thu Apr 14 08:53:34 2022 +0200
+++ b/eric7/Utilities/__init__.py	Sun Apr 17 19:34:09 2022 +0200
@@ -1798,7 +1798,9 @@
         if interpreter == "" or not isinpath(interpreter):
             interpreter = getPythonExecutable()
         prefix = os.path.dirname(interpreter)
-        return os.path.join(prefix, "Scripts", toolname + '.exe')
+        if not prefix.endswith("Scripts"):
+            prefix = os.path.join(prefix, "Scripts")
+        return os.path.join(prefix, toolname + '.exe')
     else:
         # step 1: check, if the user has configured a tools path
         path = Preferences.getQt("PySide{0}ToolsDir".format(variant))

eric ide

mercurial