--- a/eric7/UI/UserInterface.py Sun Apr 03 17:23:31 2022 +0200 +++ b/eric7/UI/UserInterface.py Mon Apr 04 17:43:43 2022 +0200 @@ -4402,7 +4402,7 @@ if res and self.__shutdown(): ericApp().closeAllWindows() - program = sys.executable + program = Globals.getPythonExecutable() args = ["-m", "eric7", "--start-session"] args.extend(self.__restartArgs) QProcess.startDetached(program, args) @@ -4490,7 +4490,7 @@ @type str """ ericApp().closeAllWindows() - program = sys.executable.replace("w.exe", ".exe") + program = Globals.getPythonExecutable() ericStartArgs = ["-m", "eric7", "--start-session"] ericStartArgs.extend(self.__restartArgs) @@ -4511,7 +4511,7 @@ """ if not Preferences.getUI("SingleApplicationMode"): # start eric without any arguments - program = sys.executable + program = Globals.getPythonExecutable() eric7 = os.path.join(getConfig("ericDir"), "eric7.py") args = [eric7] QProcess.startDetached(program, args) @@ -5677,7 +5677,7 @@ if ( not os.path.isfile(viewer) or - not proc.startDetached(sys.executable, args) + not proc.startDetached(Globals.getPythonExecutable(), args) ): EricMessageBox.critical( self, @@ -5734,7 +5734,7 @@ if ( not os.path.isfile(viewer) or - not proc.startDetached(sys.executable, args) + not proc.startDetached(Globals.getPythonExecutable(), args) ): EricMessageBox.critical( self, @@ -5757,7 +5757,7 @@ if ( not os.path.isfile(browser) or - not proc.startDetached(sys.executable, args) + not proc.startDetached(Globals.getPythonExecutable(), args) ): EricMessageBox.critical( self, @@ -5842,7 +5842,7 @@ if ( not os.path.isfile(snap) or - not proc.startDetached(sys.executable, args) + not proc.startDetached(Globals.getPythonExecutable(), args) ): EricMessageBox.critical( self, @@ -6375,7 +6375,7 @@ "--name={0}".format(self.__webBrowserSAName), home ] - process.start(sys.executable, args) + process.start(Globals.getPythonExecutable(), args) if not process.waitForStarted(): EricMessageBox.warning( self,