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