185 import sys |
185 import sys |
186 if sys.version_info[0] == 2: |
186 if sys.version_info[0] == 2: |
187 self.clientType = 'Python2' |
187 self.clientType = 'Python2' |
188 else: |
188 else: |
189 self.clientType = 'Python3' |
189 self.clientType = 'Python3' |
|
190 # Change clientType if dependent interpreter not exist anymore (maybe deinstalled,...) |
|
191 elif self.clientType == 'Python2' and Preferences.getDebugger("PythonInterpreter") == '': |
|
192 self.clientType = 'Python3' |
|
193 elif self.clientType == 'Python3' and Preferences.getDebugger("Python3Interpreter") == '': |
|
194 self.clientType = 'Python2' |
190 |
195 |
191 self.lastClientType = '' |
196 self.lastClientType = '' |
192 self.__autoClearShell = False |
197 self.__autoClearShell = False |
193 |
198 |
194 self.clientClearBreak.connect(self.__clientClearBreakPoint) |
199 self.clientClearBreak.connect(self.__clientClearBreakPoint) |