Globals/__init__.py

changeset 5400
5cdca61d8cd8
parent 5389
9b1c800daff3
child 5401
dbbbd94aec0b
--- a/Globals/__init__.py	Fri Jan 06 17:19:38 2017 +0100
+++ b/Globals/__init__.py	Fri Jan 06 18:22:02 2017 +0100
@@ -79,8 +79,9 @@
     
     # check version of sip
     try:
-        import sipconfig
-        sipVersion = sipconfig.Configuration().sip_version_str
+        import sip
+        sip_version_str = sip.SIP_VERSION_STR
+    except (ImportError, AttributeError):
         # always assume, that snapshots are good
         if "snapshot" not in sipVersion:
             # check for blacklisted versions
@@ -91,8 +92,6 @@
                         .format(vers))
                     print('Please install another version.')
                     return False
-    except ImportError:
-        pass
     
     # check version of PyQt
     from PyQt5.QtCore import PYQT_VERSION_STR

eric ide

mercurial