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 testing module and starts the Qt event loop. This is a standalone |
11 of the testing module and starts the Qt event loop. This is a standalone |
12 version of the integrated testing module. |
12 version of the integrated testing module. |
13 """ |
13 """ |
14 |
14 |
|
15 import os |
15 import sys |
16 import sys |
16 import os |
17 |
|
18 from PyQt6.QtGui import QGuiApplication |
17 |
19 |
18 for arg in sys.argv[:]: |
20 for arg in sys.argv[:]: |
19 if arg.startswith("--config="): |
21 if arg.startswith("--config="): |
20 from eric7 import Globals |
22 from eric7 import Globals |
21 |
23 |
32 QSettings.Format.IniFormat, QSettings.Scope.UserScope, settingsDir |
34 QSettings.Format.IniFormat, QSettings.Scope.UserScope, settingsDir |
33 ) |
35 ) |
34 sys.argv.remove(arg) |
36 sys.argv.remove(arg) |
35 |
37 |
36 from eric7.Globals import AppInfo |
38 from eric7.Globals import AppInfo |
|
39 from eric7.Toolbox import Startup |
37 |
40 |
38 from eric7.Toolbox import Startup |
41 # make Python debug client available as a package repository (needed for 'coverage') |
|
42 sys.path.insert(2, os.path.join(os.path.dirname(__file__), "DebugClients", "Python")) |
39 |
43 |
40 |
44 |
41 def createMainWidget(argv): |
45 def createMainWidget(argv): |
42 """ |
46 """ |
43 Function to create the main widget. |
47 Function to create the main widget. |