11 of the icon editor and starts the Qt event loop. This is a standalone version |
11 of the icon editor and starts the Qt event loop. This is a standalone version |
12 of the integrated icon editor. |
12 of the integrated icon editor. |
13 """ |
13 """ |
14 |
14 |
15 import sys |
15 import sys |
16 import os |
|
17 |
16 |
18 for arg in sys.argv: |
17 for arg in sys.argv: |
19 if arg.startswith("--config="): |
18 if arg.startswith("--config="): |
20 import Utilities |
19 import Utilities |
21 configDir = arg.replace("--config=", "") |
20 configDir = arg.replace("--config=", "") |
22 Utilities.setConfigDir(configDir) |
21 Utilities.setConfigDir(configDir) |
23 sys.argv.remove(arg) |
22 sys.argv.remove(arg) |
24 break |
23 break |
25 |
24 |
26 from Utilities import Startup |
25 from Utilities import Startup |
27 import Utilities |
|
28 |
26 |
29 def createMainWidget(argv): |
27 def createMainWidget(argv): |
30 """ |
28 """ |
31 Function to create the main widget. |
29 Function to create the main widget. |
32 |
30 |