316 if pyqtToolsPath: |
316 if pyqtToolsPath: |
317 exe = os.path.join(pyqtToolsPath, toolname) |
317 exe = os.path.join(pyqtToolsPath, toolname) |
318 if OSUtilities.isWindowsPlatform(): |
318 if OSUtilities.isWindowsPlatform(): |
319 exe += ".exe" |
319 exe += ".exe" |
320 else: |
320 else: |
321 if OSUtilities.isWindowsPlatform(): |
321 exe = toolname |
322 exe = FileSystemUtilities.getWindowsExecutablePath(toolname) |
322 |
323 else: |
323 exePath = FileSystemUtilities.getExecutablePath(exe) |
324 exe = toolname |
324 if not exePath and alternatives: |
325 |
|
326 if not FileSystemUtilities.isinpath(exe) and alternatives: |
|
327 ex_ = generatePyQtToolPath(alternatives[0], alternatives[1:]) |
325 ex_ = generatePyQtToolPath(alternatives[0], alternatives[1:]) |
328 if FileSystemUtilities.isinpath(ex_): |
326 exePath = FileSystemUtilities.getExecutablePath(ex_) |
329 exe = ex_ |
327 |
330 |
328 return exePath |
331 return exe |
|
332 |
329 |
333 |
330 |
334 ############################################################################### |
331 ############################################################################### |
335 ## PySide2/PySide6 utility functions below |
332 ## PySide2/PySide6 utility functions below |
336 ############################################################################### |
333 ############################################################################### |