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 ) |
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): |