eric7/Utilities/BackgroundService.py

branch
eric7
changeset 9016
6f079c524e99
parent 8943
23f9c7b9e18e
--- a/eric7/Utilities/BackgroundService.py	Sun Apr 03 17:23:31 2022 +0200
+++ b/eric7/Utilities/BackgroundService.py	Mon Apr 04 17:43:43 2022 +0200
@@ -72,7 +72,7 @@
         interpreter = ericApp().getObject(
             "VirtualEnvManager").getVirtualenvInterpreter(venvName)
         if not interpreter:
-            interpreter = sys.executable.replace("w.exe", ".exe")
+            interpreter = Globals.getPythonExecutable()
         if interpreter:
             process = self.__startExternalClient(interpreter, port)
             if process:
@@ -272,7 +272,7 @@
         interpreter = ericApp().getObject(
             "VirtualEnvManager").getVirtualenvInterpreter(venvName)
         if not interpreter:
-            interpreter = sys.executable.replace("w.exe", ".exe")
+            interpreter = Globals.getPythonExecutable()
         
         # Tweak the processes list to reflect the changed interpreter
         proc, inter = self.processes.pop('Python3', [None, None])

eric ide

mercurial