180 newArgs += args |
180 newArgs += args |
181 |
181 |
182 return ("open", newArgs) |
182 return ("open", newArgs) |
183 |
183 |
184 |
184 |
|
185 def hasQtDesigner(): |
|
186 """ |
|
187 Function to check for the availabilility of Qt-Designer tool. |
|
188 |
|
189 @return flag indicating the availability of the Qt-Designer tool |
|
190 @rtype bool |
|
191 """ |
|
192 if OSUtilities.isWindowsPlatform(): |
|
193 designerExe = os.path.join( |
|
194 getQtBinariesPath(), |
|
195 "{0}.exe".format(generateQtToolName("designer")), |
|
196 ) |
|
197 elif OSUtilities.isMacPlatform(): |
|
198 designerExe = getQtMacBundle("designer") |
|
199 else: |
|
200 designerExe = os.path.join( |
|
201 getQtBinariesPath(), |
|
202 generateQtToolName("designer"), |
|
203 ) |
|
204 return os.path.exists(designerExe) |
|
205 |
|
206 |
|
207 def hasQtLinguist(): |
|
208 """ |
|
209 Function to check for the availabilility of Qt-Linguist tool. |
|
210 |
|
211 @return flag indicating the availability of the Qt-Linguist tool |
|
212 @rtype bool |
|
213 """ |
|
214 if OSUtilities.isWindowsPlatform(): |
|
215 linguistExe = os.path.join( |
|
216 getQtBinariesPath(), |
|
217 "{0}.exe".format(generateQtToolName("linguist")), |
|
218 ) |
|
219 elif OSUtilities.isMacPlatform(): |
|
220 linguistExe = getQtMacBundle("linguist") |
|
221 else: |
|
222 linguistExe = os.path.join( |
|
223 getQtBinariesPath(), |
|
224 generateQtToolName("linguist"), |
|
225 ) |
|
226 return os.path.exists(linguistExe) |
|
227 |
|
228 |
185 ############################################################################### |
229 ############################################################################### |
186 ## PyQt utility functions below |
230 ## PyQt utility functions below |
187 ############################################################################### |
231 ############################################################################### |
188 |
232 |
189 |
233 |