eric5_editor.py

branch
Py2 comp.
changeset 2526
a91cba8291b9
parent 2525
8b507a9a2d40
child 2538
b2642e7a4c18
--- a/eric5_editor.py	Mon Mar 25 03:11:06 2013 +0100
+++ b/eric5_editor.py	Mon Mar 25 03:28:43 2013 +0100
@@ -13,6 +13,13 @@
 """
 
 from __future__ import unicode_literals    # __IGNORE_WARNING__
+try: # Only for Py2
+    import sip
+    sip.setapi('QString', 2)
+    sip.setapi('QVariant', 2)
+    import Utilities.compatibility_fixes     # __IGNORE_WARNING__
+except (ImportError):
+    pass
 
 import sys
 import os

eric ide

mercurial