eric6/Globals/__init__.py

changeset 8243
cc717c2ae956
parent 8240
93b8a353c4bf
child 8257
28146736bbfc
equal deleted inserted replaced
8242:aa713ac50c0d 8243:cc717c2ae956
320 # step 1: check, if the user has configured a tools path 320 # step 1: check, if the user has configured a tools path
321 path = Preferences.getQt("QtToolsDir") 321 path = Preferences.getQt("QtToolsDir")
322 322
323 # step 2: try the qt5_applications package 323 # step 2: try the qt5_applications package
324 if not path: 324 if not path:
325 try: 325 with contextlib.suppress(ImportError):
326 import qt5_applications 326 import qt5_applications
327 path = os.path.join(os.path.dirname(qt5_applications.__file__), 327 path = os.path.join(os.path.dirname(qt5_applications.__file__),
328 "Qt", "bin") 328 "Qt", "bin")
329 except ImportError: 329 # if qt5-applications is not installed just go to the next step
330 # qt5-applications is not installed; just go to the next step
331 pass
332 330
333 # step 3: determine from used Python interpreter (designer is test object) 331 # step 3: determine from used Python interpreter (designer is test object)
334 if not path: 332 if not path:
335 program = "designer" 333 program = "designer"
336 if isWindowsPlatform(): 334 if isWindowsPlatform():

eric ide

mercurial