eric6/Globals/__init__.py

changeset 7861
3d48094ba8e1
parent 7835
0835ed67714b
child 7907
7991ea245c20
child 7924
8a96736d465e
--- a/eric6/Globals/__init__.py	Sat Dec 05 18:25:56 2020 +0100
+++ b/eric6/Globals/__init__.py	Sun Dec 06 12:46:00 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