eric7/DebugClients/Python/DebugClientBase.py

branch
eric7
changeset 8331
960ce05a265c
parent 8312
800c432b34c8
child 8363
e0890180e16a
diff -r 43c4e3ebba9e -r 960ce05a265c eric7/DebugClients/Python/DebugClientBase.py
--- a/eric7/DebugClients/Python/DebugClientBase.py	Thu May 20 18:20:56 2021 +0200
+++ b/eric7/DebugClients/Python/DebugClientBase.py	Thu May 20 18:08:02 2021 +0200
@@ -20,7 +20,6 @@
 import signal
 import time
 import types
-import importlib.util
 import fnmatch
 import contextlib
 
@@ -870,9 +869,7 @@
                         os.path.dirname(os.path.abspath(params["filename"]))
                     )
                     if params["filename"]:
-                        spec = importlib.util.spec_from_file_location(
-                            params["testname"], params["filename"])
-                        utModule = importlib.util.module_from_spec(spec)
+                        utModule = __import__(params["testname"])
                     else:
                         utModule = None
                     if params["failed"]:

eric ide

mercurial