src/eric7/QScintilla/Shell.py

branch
eric7
changeset 10649
a608175336f4
parent 10621
f5631f40c4d9
child 10651
280a53840aa3
child 10658
353fbc65a79e
equal deleted inserted replaced
10648:57b0f5657250 10649:a608175336f4
2149 2149
2150 def doRestart(self): 2150 def doRestart(self):
2151 """ 2151 """
2152 Public slot to handle the 'restart' context menu entry. 2152 Public slot to handle the 'restart' context menu entry.
2153 """ 2153 """
2154 venvName = (
2155 self.dbs.getProjectEnvironmentString()
2156 if (
2157 self.__project.isOpen()
2158 and self.__currentVenv == self.__project.getProjectVenv(
2159 resolveDebugger=False
2160 )
2161 )
2162 else self.__currentVenv
2163 )
2154 self.dbs.startClient( 2164 self.dbs.startClient(
2155 False, 2165 False,
2156 venvName=self.__currentVenv, 2166 venvName=venvName,
2157 workingDir=self.__currentWorkingDirectory, 2167 workingDir=self.__currentWorkingDirectory,
2158 ) 2168 )
2159 2169
2160 def __startDebugClient(self, action): 2170 def __startDebugClient(self, action):
2161 """ 2171 """

eric ide

mercurial