src/eric7/eric7_testing.py

branch
eric7
changeset 9482
a2bc06a54d9d
parent 9473
3f23dbf37dbe
child 9549
67295777d9fe
child 9653
e67609152c5e
diff -r 0b936ff1bbb9 -r a2bc06a54d9d src/eric7/eric7_testing.py
--- a/src/eric7/eric7_testing.py	Sun Nov 06 11:22:39 2022 +0100
+++ b/src/eric7/eric7_testing.py	Mon Nov 07 17:19:58 2022 +0100
@@ -15,6 +15,8 @@
 import os
 import sys
 
+from PyQt6.QtGui import QGuiApplication
+
 for arg in sys.argv[:]:
     if arg.startswith("--config="):
         from eric7 import Globals
@@ -36,6 +38,9 @@
 from eric7.Globals import AppInfo
 from eric7.Toolbox import Startup
 
+# make Python debug client available as a package repository (needed for 'coverage')
+sys.path.insert(2, os.path.join(os.path.dirname(__file__), "DebugClients", "Python"))
+
 
 def createMainWidget(argv):
     """
@@ -59,8 +64,6 @@
     """
     Main entry point into the application.
     """
-    from PyQt6.QtGui import QGuiApplication
-
     QGuiApplication.setDesktopFileName("eric7_testing.desktop")
 
     options = [

eric ide

mercurial