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