eric7/QScintilla/ShellWindow.py

branch
eric7
changeset 9016
6f079c524e99
parent 8881
54e42bc2437a
equal deleted inserted replaced
9015:dfeefad914ed 9016:6f079c524e99
5 5
6 """ 6 """
7 Module implementing a stand alone shell window. 7 Module implementing a stand alone shell window.
8 """ 8 """
9 9
10 import sys
11 import os 10 import os
12 11
13 from PyQt6.QtCore import ( 12 from PyQt6.QtCore import (
14 Qt, QCoreApplication, QPoint, QSize, QSignalMapper, QProcess 13 Qt, QCoreApplication, QPoint, QSize, QSignalMapper, QProcess
15 ) 14 )
27 26
28 import UI.Config 27 import UI.Config
29 import UI.PixmapCache 28 import UI.PixmapCache
30 import Preferences 29 import Preferences
31 30
32 from Globals import isMacPlatform 31 from Globals import isMacPlatform, getPythonExecutable
33 32
34 from .Shell import Shell 33 from .Shell import Shell
35 from .APIsManager import APIsManager 34 from .APIsManager import APIsManager
36 35
37 from Debugger.DebugServer import DebugServer 36 from Debugger.DebugServer import DebugServer
1053 1052
1054 def __newWindow(self): 1053 def __newWindow(self):
1055 """ 1054 """
1056 Private slot to start a new instance of eric. 1055 Private slot to start a new instance of eric.
1057 """ 1056 """
1058 program = sys.executable 1057 program = getPythonExecutable()
1059 eric7 = os.path.join(getConfig("ericDir"), "eric7_shell.py") 1058 eric7 = os.path.join(getConfig("ericDir"), "eric7_shell.py")
1060 args = [eric7] 1059 args = [eric7]
1061 QProcess.startDetached(program, args) 1060 QProcess.startDetached(program, args)
1062 1061
1063 def __virtualEnvironmentChanged(self, venvName): 1062 def __virtualEnvironmentChanged(self, venvName):

eric ide

mercurial