--- a/eric7/Debugger/DebuggerInterfacePython.py Sun Apr 03 17:23:31 2022 +0200 +++ b/eric7/Debugger/DebuggerInterfacePython.py Mon Apr 04 17:43:43 2022 +0200 @@ -22,6 +22,7 @@ from . import DebugClientCapabilities +import Globals import Preferences import Utilities @@ -185,7 +186,7 @@ execPath = venvManager.getVirtualenvExecPath(venvName) if interpreter == "": # use the interpreter used to run eric for identical variants - interpreter = sys.executable.replace("w.exe", ".exe") + interpreter = Globals.getPythonExecutable() if interpreter == "": EricMessageBox.critical( None, @@ -390,7 +391,7 @@ interpreter == "" and project.getProjectLanguage().startswith("Python") ): - interpreter = sys.executable.replace("w.exe", ".exe") + interpreter = Globals.getPythonExecutable() if interpreter == "": EricMessageBox.critical( None,