Sun, 17 Apr 2022 19:34:09 +0200
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))