src/eric7/Debugger/DebuggerInterfacePython.py

branch
eric7-maintenance
changeset 9371
1da8bc75946f
parent 9264
18a7312cfdb3
parent 9320
22eef25d2956
child 9442
906485dcd210
diff -r 90dc02c8a384 -r 1da8bc75946f src/eric7/Debugger/DebuggerInterfacePython.py
--- a/src/eric7/Debugger/DebuggerInterfacePython.py	Fri Sep 02 14:10:44 2022 +0200
+++ b/src/eric7/Debugger/DebuggerInterfacePython.py	Sat Oct 01 13:06:10 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