--- a/Utilities/__init__.py Tue Sep 05 19:32:23 2017 +0200 +++ b/Utilities/__init__.py Fri Sep 15 19:41:33 2017 +0200 @@ -1693,12 +1693,14 @@ ############################################################################### -def generatePyQtToolPath(toolname): +def generatePyQtToolPath(toolname, alternatives=None): """ Module function to generate the executable path for a PyQt tool. @param toolname base name of the tool @type str + @param alternatives list of alternative tool names to try + @type list of str @return executable path name of the tool @rtype str """ @@ -1713,6 +1715,12 @@ exe = getWindowsExecutablePath(toolname) else: exe = toolname + + if not isinpath(exe) and alternatives: + ex_ = generatePyQtToolPath(alternatives[0], alternatives[1:]) + if isinpath(ex_): + exe = ex_ + return exe ###############################################################################