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 |
14 |
|
15 import os |
15 import sys |
16 import sys |
16 import os |
|
17 |
17 |
18 for arg in sys.argv[:]: |
18 for arg in sys.argv[:]: |
19 if arg.startswith("--config="): |
19 if arg.startswith("--config="): |
20 from eric7 import Globals |
20 from eric7 import Globals |
21 |
21 |
32 QSettings.Format.IniFormat, QSettings.Scope.UserScope, settingsDir |
32 QSettings.Format.IniFormat, QSettings.Scope.UserScope, settingsDir |
33 ) |
33 ) |
34 sys.argv.remove(arg) |
34 sys.argv.remove(arg) |
35 |
35 |
36 from eric7.Globals import AppInfo |
36 from eric7.Globals import AppInfo |
37 |
|
38 from eric7.Toolbox import Startup |
37 from eric7.Toolbox import Startup |
39 |
38 |
40 |
39 |
41 def createMainWidget(argv): |
40 def createMainWidget(argv): |
42 """ |
41 """ |