src/eric7/eric7_testing.py

branch
eric7-maintenance
changeset 9549
67295777d9fe
parent 9442
906485dcd210
parent 9482
a2bc06a54d9d
child 9654
7328efba128b
equal deleted inserted replaced
9451:24c847222774 9549:67295777d9fe
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.
58 62
59 def main(): 63 def main():
60 """ 64 """
61 Main entry point into the application. 65 Main entry point into the application.
62 """ 66 """
63 from PyQt6.QtGui import QGuiApplication
64
65 QGuiApplication.setDesktopFileName("eric7_testing.desktop") 67 QGuiApplication.setDesktopFileName("eric7_testing.desktop")
66 68
67 options = [ 69 options = [
68 ( 70 (
69 "--config=configDir", 71 "--config=configDir",

eric ide

mercurial