src/eric7/SystemUtilities/QtUtilities.py

branch
eric7
changeset 10431
64157aeb0312
parent 10250
09b42174e077
child 10439
21c28b0f9e41
equal deleted inserted replaced
10430:e440aaf179ce 10431:64157aeb0312
45 def generateQtToolName(toolname): 45 def generateQtToolName(toolname):
46 """ 46 """
47 Module function to generate the executable name for a Qt tool like 47 Module function to generate the executable name for a Qt tool like
48 designer. 48 designer.
49 49
50 @param toolname base name of the tool (string) 50 @param toolname base name of the tool
51 @return the Qt tool name without extension (string) 51 @type str
52 @return the Qt tool name without extension
53 @rtype str
52 """ 54 """
53 from eric7 import Preferences 55 from eric7 import Preferences
54 56
55 return "{0}{1}{2}".format( 57 return "{0}{1}{2}".format(
56 Preferences.getQt("QtToolsPrefix"), 58 Preferences.getQt("QtToolsPrefix"),
133 135
134 def getQtMacBundle(toolname): 136 def getQtMacBundle(toolname):
135 """ 137 """
136 Module function to determine the correct Mac OS X bundle name for Qt tools. 138 Module function to determine the correct Mac OS X bundle name for Qt tools.
137 139
138 @param toolname plain name of the tool (e.g. "designer") (string) 140 @param toolname plain name of the tool (e.g. "designer")
139 @return bundle name of the Qt tool (string) 141 @type str
142 @return bundle name of the Qt tool
143 @rtype str
140 """ 144 """
141 qtDir = getQtBinariesPath() 145 qtDir = getQtBinariesPath()
142 bundles = [ 146 bundles = [
143 os.path.join(qtDir, "bin", generateQtToolName(toolname.capitalize())) + ".app", 147 os.path.join(qtDir, "bin", generateQtToolName(toolname.capitalize())) + ".app",
144 os.path.join(qtDir, "bin", generateQtToolName(toolname)) + ".app", 148 os.path.join(qtDir, "bin", generateQtToolName(toolname)) + ".app",

eric ide

mercurial