eric6/Utilities/__init__.py

changeset 7451
f04328aef87a
parent 7446
67b21645ffec
child 7586
9ca5907d5ed3
--- a/eric6/Utilities/__init__.py	Mon Mar 09 20:21:38 2020 +0100
+++ b/eric6/Utilities/__init__.py	Tue Mar 10 19:32:25 2020 +0100
@@ -1846,6 +1846,11 @@
         if toolname in ["pyside-uic", "pyside2-uic"]:
             return os.path.join(prefix, "Scripts", toolname + '.exe')
         else:
+            path = os.path.join(prefix, "Scripts", toolname + '.exe')
+            if os.path.exists(path):
+                return path
+            
+            # report it the old style
             return os.path.join(
                 prefix, "Lib", "site-packages",
                 "PySide{0}".format("" if variant == "1" else variant),

eric ide

mercurial