eric6/DebugClients/Python/DebugClientBase.py

changeset 8328
e22ce9001905
parent 8262
2f6310aac6cd
child 8349
b43cf23955aa
diff -r 0a99aecb5d91 -r e22ce9001905 eric6/DebugClients/Python/DebugClientBase.py
--- a/eric6/DebugClients/Python/DebugClientBase.py	Wed May 19 19:44:13 2021 +0200
+++ b/eric6/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