Python Debugger eric7

Sun, 11 Sep 2022 12:30:51 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 11 Sep 2022 12:30:51 +0200
branch
eric7
changeset 9320
22eef25d2956
parent 9319
13fa876491bd
child 9321
3cca871d0be1

Python Debugger
- changed code to use the 'standard' debug client if no custom client was configured

src/eric7/Debugger/DebuggerInterfacePython.py file | annotate | diff | comparison | revisions
--- 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