src/eric7/eric7_testing.py

branch
eric7-maintenance
changeset 9442
906485dcd210
parent 9264
18a7312cfdb3
parent 9413
80c06d472826
child 9549
67295777d9fe
diff -r f23c43e18046 -r 906485dcd210 src/eric7/eric7_testing.py
--- a/src/eric7/eric7_testing.py	Sun Oct 02 11:44:07 2022 +0200
+++ b/src/eric7/eric7_testing.py	Sat Oct 29 15:24:59 2022 +0200
@@ -15,11 +15,9 @@
 import sys
 import os
 
-sys.path.insert(1, os.path.dirname(__file__))
-
 for arg in sys.argv[:]:
     if arg.startswith("--config="):
-        import Globals
+        from eric7 import Globals
 
         configDir = arg.replace("--config=", "")
         Globals.setConfigDir(configDir)
@@ -35,9 +33,9 @@
         )
         sys.argv.remove(arg)
 
-from Globals import AppInfo
+from eric7.Globals import AppInfo
 
-from Toolbox import Startup
+from eric7.Toolbox import Startup
 
 
 def createMainWidget(argv):
@@ -49,7 +47,7 @@
     @return reference to the main widget
     @rtype QWidget
     """
-    from Testing.TestingWidget import TestingWindow
+    from eric7.Testing.TestingWidget import TestingWindow
 
     try:
         fn = argv[1]

eric ide

mercurial