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 SQL browser and starts the Qt event loop. |
11 of the SQL browser and starts the Qt event loop. |
12 """ |
12 """ |
13 |
13 |
|
14 import os |
14 import sys |
15 import sys |
15 import os |
|
16 |
16 |
17 for arg in sys.argv[:]: |
17 for arg in sys.argv[:]: |
18 if arg.startswith("--config="): |
18 if arg.startswith("--config="): |
19 from eric7 import Globals |
19 from eric7 import Globals |
20 |
20 |
31 QSettings.Format.IniFormat, QSettings.Scope.UserScope, settingsDir |
31 QSettings.Format.IniFormat, QSettings.Scope.UserScope, settingsDir |
32 ) |
32 ) |
33 sys.argv.remove(arg) |
33 sys.argv.remove(arg) |
34 |
34 |
35 from eric7.Globals import AppInfo |
35 from eric7.Globals import AppInfo |
36 |
|
37 from eric7.Toolbox import Startup |
36 from eric7.Toolbox import Startup |
38 |
37 |
39 |
38 |
40 def createMainWidget(argv): |
39 def createMainWidget(argv): |
41 """ |
40 """ |