eric6/Globals/__init__.py

branch
maintenance
changeset 7858
b8223c11fd4b
parent 7835
0835ed67714b
child 7907
7991ea245c20
child 7924
8a96736d465e
--- a/eric6/Globals/__init__.py	Sat Dec 05 12:29:55 2020 +0100
+++ b/eric6/Globals/__init__.py	Sun Dec 06 12:25:09 2020 +0100
@@ -318,9 +318,13 @@
     
     # step 2: try the qt5_applications package
     if not path:
-        import qt5_applications
-        path = os.path.join(os.path.dirname(qt5_applications.__file__),
-                            "Qt", "bin")
+        try:
+            import qt5_applications
+            path = os.path.join(os.path.dirname(qt5_applications.__file__),
+                                "Qt", "bin")
+        except ImportError:
+            # qt5-applications is not installed; just go to the next step
+            pass
     
     # step 3: determine from used Python interpreter (designer is test object)
     if not path:

eric ide

mercurial