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 MiniEditor module and starts the Qt event loop. This is a standalone |
11 of the MiniEditor module and starts the Qt event loop. This is a standalone |
12 version of the integrated MiniEditor module. |
12 version of the integrated MiniEditor module. |
13 """ |
13 """ |
|
14 |
|
15 from __future__ import unicode_literals |
|
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 |
14 |
23 |
15 import sys |
24 import sys |
16 import os |
25 import os |
17 |
26 |
18 for arg in sys.argv: |
27 for arg in sys.argv: |