eric7/Utilities/__init__.py

branch
eric7
changeset 9027
f259edcf185a
parent 9016
6f079c524e99
child 9066
a219ade50f7c
child 9111
4ac66b6c33a4
diff -r 2cba3f220ef5 -r f259edcf185a eric7/Utilities/__init__.py
--- 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