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 ShellWindow module and starts the Qt event loop. |
11 of the ShellWindow module 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 originalPathString = os.getenv("PATH") |
17 originalPathString = os.getenv("PATH") |
18 |
18 |
19 for arg in sys.argv[:]: |
19 for arg in sys.argv[:]: |
20 if arg.startswith("--config="): |
20 if arg.startswith("--config="): |
33 QSettings.Format.IniFormat, QSettings.Scope.UserScope, settingsDir |
33 QSettings.Format.IniFormat, QSettings.Scope.UserScope, settingsDir |
34 ) |
34 ) |
35 sys.argv.remove(arg) |
35 sys.argv.remove(arg) |
36 |
36 |
37 from eric7.Globals import AppInfo |
37 from eric7.Globals import AppInfo |
38 |
|
39 from eric7.Toolbox import Startup |
38 from eric7.Toolbox import Startup |
40 |
39 |
41 |
40 |
42 def createMainWidget(argv): |
41 def createMainWidget(argv): |
43 """ |
42 """ |