316 # step 1: check, if the user has configured a tools path |
316 # step 1: check, if the user has configured a tools path |
317 path = Preferences.getQt("QtToolsDir") |
317 path = Preferences.getQt("QtToolsDir") |
318 |
318 |
319 # step 2: try the qt5_applications package |
319 # step 2: try the qt5_applications package |
320 if not path: |
320 if not path: |
321 import qt5_applications |
321 try: |
322 path = os.path.join(os.path.dirname(qt5_applications.__file__), |
322 import qt5_applications |
323 "Qt", "bin") |
323 path = os.path.join(os.path.dirname(qt5_applications.__file__), |
|
324 "Qt", "bin") |
|
325 except ImportError: |
|
326 # qt5-applications is not installed; just go to the next step |
|
327 pass |
324 |
328 |
325 # step 3: determine from used Python interpreter (designer is test object) |
329 # step 3: determine from used Python interpreter (designer is test object) |
326 if not path: |
330 if not path: |
327 program = "designer" |
331 program = "designer" |
328 if isWindowsPlatform(): |
332 if isWindowsPlatform(): |