src/eric7/eric7_testing.py

branch
eric7
changeset 9482
a2bc06a54d9d
parent 9473
3f23dbf37dbe
child 9549
67295777d9fe
child 9653
e67609152c5e
equal deleted inserted replaced
9481:0b936ff1bbb9 9482:a2bc06a54d9d
12 version of the integrated testing module. 12 version of the integrated testing module.
13 """ 13 """
14 14
15 import os 15 import os
16 import sys 16 import sys
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
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
37 from eric7.Toolbox import Startup 39 from eric7.Toolbox import Startup
40
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"))
38 43
39 44
40 def createMainWidget(argv): 45 def createMainWidget(argv):
41 """ 46 """
42 Function to create the main widget. 47 Function to create the main widget.
57 62
58 def main(): 63 def main():
59 """ 64 """
60 Main entry point into the application. 65 Main entry point into the application.
61 """ 66 """
62 from PyQt6.QtGui import QGuiApplication
63
64 QGuiApplication.setDesktopFileName("eric7_testing.desktop") 67 QGuiApplication.setDesktopFileName("eric7_testing.desktop")
65 68
66 options = [ 69 options = [
67 ( 70 (
68 "--config=configDir", 71 "--config=configDir",

eric ide

mercurial