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