11 IDE. |
11 IDE. |
12 """ |
12 """ |
13 |
13 |
14 from __future__ import unicode_literals |
14 from __future__ import unicode_literals |
15 |
15 |
|
16 import sys |
|
17 import os |
|
18 |
|
19 sys.path.insert(1, os.path.dirname(__file__)) |
|
20 |
16 import Toolbox.PyQt4ImportHook # __IGNORE_WARNING__ |
21 import Toolbox.PyQt4ImportHook # __IGNORE_WARNING__ |
17 |
22 |
18 try: # Only for Py2 |
23 try: # Only for Py2 |
19 import Globals.compatibility_fixes # __IGNORE_WARNING__ |
24 import Globals.compatibility_fixes # __IGNORE_WARNING__ |
20 except (ImportError): |
25 except (ImportError): |
21 pass |
26 pass |
22 |
|
23 import sys |
|
24 import os |
|
25 |
27 |
26 for arg in sys.argv[:]: |
28 for arg in sys.argv[:]: |
27 if arg.startswith("--config="): |
29 if arg.startswith("--config="): |
28 import Globals |
30 import Globals |
29 configDir = arg.replace("--config=", "") |
31 configDir = arg.replace("--config=", "") |