src/eric7/SystemUtilities/QtUtilities.py

branch
eric7
changeset 11217
856628e8a303
parent 11216
a1471981ef18
equal deleted inserted replaced
11216:a1471981ef18 11217:856628e8a303
252 return pyqtPath 252 return pyqtPath
253 253
254 return "" 254 return ""
255 255
256 256
257 def getPyQtToolsPath(version=5): 257 def getPyQtToolsPath(version=6):
258 """ 258 """
259 Module function to get the path of the PyQt tools. 259 Module function to get the path of the PyQt tools.
260 260
261 @param version PyQt major version 261 @param version PyQt major version
262 @type int 262 @type int
267 from eric7.EricWidgets.EricApplication import ericApp 267 from eric7.EricWidgets.EricApplication import ericApp
268 268
269 toolsPath = "" 269 toolsPath = ""
270 270
271 # step 1: check, if the user has configured a tools path 271 # step 1: check, if the user has configured a tools path
272 if version == 5: 272 if version == 6:
273 toolsPath = Preferences.getQt("PyQtToolsDir")
274 venvName = Preferences.getQt("PyQtVenvName")
275 elif version == 6:
276 toolsPath = Preferences.getQt("PyQt6ToolsDir") 273 toolsPath = Preferences.getQt("PyQt6ToolsDir")
277 venvName = Preferences.getQt("PyQt6VenvName") 274 venvName = Preferences.getQt("PyQt6VenvName")
278 275
279 # step 2: determine from used Python interpreter (pylupdate is test object) 276 # step 2: determine from used Python interpreter (pylupdate is test object)
280 if not toolsPath: 277 if not toolsPath:

eric ide

mercurial