src/eric7/Debugger/DebuggerInterfacePython.py

branch
eric7
changeset 9320
22eef25d2956
parent 9221
bf71ee032bb4
child 9371
1da8bc75946f
child 9388
bfe7ea6599a3
diff -r 13fa876491bd -r 22eef25d2956 src/eric7/Debugger/DebuggerInterfacePython.py
--- a/src/eric7/Debugger/DebuggerInterfacePython.py	Thu Sep 08 17:30:29 2022 +0200
+++ b/src/eric7/Debugger/DebuggerInterfacePython.py	Sun Sep 11 12:30:51 2022 +0200
@@ -7,7 +7,6 @@
 Module implementing the Python3 debugger interface for the debug server.
 """
 
-import sys
 import os
 import logging
 import shlex
@@ -208,8 +207,9 @@
         else:
             debugClient = Preferences.getDebugger("DebugClient3")
             if debugClient == "":
+                # use the 'standard' debug client if no custom one was configured
                 debugClient = os.path.join(
-                    sys.path[0], "DebugClients", "Python", "DebugClient.py"
+                    getConfig("ericDir"), "DebugClients", "Python", "DebugClient.py"
                 )
 
         redirect = (

eric ide

mercurial