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 """ |