eric6/Globals/__init__.py

branch
maintenance
changeset 7858
b8223c11fd4b
parent 7835
0835ed67714b
child 7907
7991ea245c20
child 7924
8a96736d465e
equal deleted inserted replaced
7851:f7e34fa76163 7858:b8223c11fd4b
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():

eric ide

mercurial