eric5_sqlbrowser.py

branch
Py2 comp.
changeset 2526
a91cba8291b9
parent 2525
8b507a9a2d40
child 2538
b2642e7a4c18
equal deleted inserted replaced
2525:8b507a9a2d40 2526:a91cba8291b9
10 This is the main Python script that performs the necessary initialization 10 This is the main Python script that performs the necessary initialization
11 of the SQL browser and starts the Qt event loop. 11 of the SQL browser and starts the Qt event loop.
12 """ 12 """
13 13
14 from __future__ import unicode_literals # __IGNORE_WARNING__ 14 from __future__ import unicode_literals # __IGNORE_WARNING__
15 try: # Only for Py2
16 import sip
17 sip.setapi('QString', 2)
18 sip.setapi('QVariant', 2)
19 import Utilities.compatibility_fixes # __IGNORE_WARNING__
20 except (ImportError):
21 pass
15 22
16 import sys 23 import sys
17 24
18 for arg in sys.argv: 25 for arg in sys.argv:
19 if arg.startswith("--config="): 26 if arg.startswith("--config="):

eric ide

mercurial