11 of the QRegExp wizard module and starts the Qt event loop. This is a standalone |
11 of the QRegExp wizard module and starts the Qt event loop. This is a standalone |
12 version of the integrated QRegExp wizard. |
12 version of the integrated QRegExp wizard. |
13 """ |
13 """ |
14 |
14 |
15 from __future__ import unicode_literals # __IGNORE_WARNING__ |
15 from __future__ import unicode_literals # __IGNORE_WARNING__ |
|
16 try: # Only for Py2 |
|
17 import sip |
|
18 sip.setapi('QString', 2) |
|
19 sip.setapi('QVariant', 2) |
|
20 import Utilities.compatibility_fixes # __IGNORE_WARNING__ |
|
21 except (ImportError): |
|
22 pass |
16 |
23 |
17 import sys |
24 import sys |
18 |
25 |
19 for arg in sys.argv: |
26 for arg in sys.argv: |
20 if arg.startswith("--config="): |
27 if arg.startswith("--config="): |