eric7/Debugger/DebuggerInterfacePython.py

branch
eric7
changeset 9016
6f079c524e99
parent 8954
c8b027c654bc
child 9056
af7c8c7b7c62
child 9111
4ac66b6c33a4
--- 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,

eric ide

mercurial