src/eric7/QScintilla/Shell.py

branch
server
changeset 10651
280a53840aa3
parent 10633
dda7e43934dc
parent 10649
a608175336f4
child 10680
306373ccf8fd
equal deleted inserted replaced
10636:24d9e6ff8111 10651:280a53840aa3
2156 2156
2157 def doRestart(self): 2157 def doRestart(self):
2158 """ 2158 """
2159 Public slot to handle the 'restart' context menu entry. 2159 Public slot to handle the 'restart' context menu entry.
2160 """ 2160 """
2161 venvName = (
2162 self.dbs.getProjectEnvironmentString()
2163 if (
2164 self.__project.isOpen()
2165 and self.__currentVenv == self.__project.getProjectVenv(
2166 resolveDebugger=False
2167 )
2168 )
2169 else self.__currentVenv
2170 )
2161 self.dbs.startClient( 2171 self.dbs.startClient(
2162 False, 2172 False,
2163 venvName=self.__currentVenv, 2173 venvName=venvName,
2164 workingDir=self.__currentWorkingDirectory, 2174 workingDir=self.__currentWorkingDirectory,
2165 ) 2175 )
2166 2176
2167 def __startDebugClient(self, action): 2177 def __startDebugClient(self, action):
2168 """ 2178 """

eric ide

mercurial