src/eric7/SystemUtilities/QtUtilities.py

branch
eric7
changeset 10791
ca9ece290f71
parent 10737
9600492ebfa7
child 11090
f5f5f5803935
--- a/src/eric7/SystemUtilities/QtUtilities.py	Thu Jun 20 15:18:30 2024 +0200
+++ b/src/eric7/SystemUtilities/QtUtilities.py	Fri Jun 21 19:41:16 2024 +0200
@@ -318,17 +318,14 @@
         if OSUtilities.isWindowsPlatform():
             exe += ".exe"
     else:
-        if OSUtilities.isWindowsPlatform():
-            exe = FileSystemUtilities.getWindowsExecutablePath(toolname)
-        else:
-            exe = toolname
+        exe = toolname
 
-    if not FileSystemUtilities.isinpath(exe) and alternatives:
+    exePath = FileSystemUtilities.getExecutablePath(exe)
+    if not exePath and alternatives:
         ex_ = generatePyQtToolPath(alternatives[0], alternatives[1:])
-        if FileSystemUtilities.isinpath(ex_):
-            exe = ex_
+        exePath = FileSystemUtilities.getExecutablePath(ex_)
 
-    return exe
+    return exePath
 
 
 ###############################################################################

eric ide

mercurial