UI/UserInterface.py

changeset 6364
6a496f0886ad
parent 6348
d6c0b8ab1fc6
child 6365
85f8745427a6
--- a/UI/UserInterface.py	Sat Jun 23 15:29:15 2018 +0200
+++ b/UI/UserInterface.py	Sat Jun 23 17:59:11 2018 +0200
@@ -3245,7 +3245,10 @@
         Private slot to handle the Versions dialog.
         """
         try:
-            import sip
+            try:
+                import sip
+            except ImportError:
+                from PyQt5 import sip
             sip_version_str = sip.SIP_VERSION_STR
         except (ImportError, AttributeError):
             sip_version_str = "sip version not available"

eric ide

mercurial