Debugger/DebugServer.py

branch
Py2 comp.
changeset 3065
070b35dde35e
parent 3060
5883ce99ee12
child 3145
a9de05d4a22f
equal deleted inserted replaced
3061:1c0ea3a87390 3065:070b35dde35e
186 self.running = False 186 self.running = False
187 self.clientProcess = None 187 self.clientProcess = None
188 188
189 self.clientType = \ 189 self.clientType = \
190 Preferences.Prefs.settings.value('DebugClient/Type') 190 Preferences.Prefs.settings.value('DebugClient/Type')
191 if self.clientType == None: 191 if self.clientType is None:
192 import sys 192 import sys
193 if sys.version_info[0] == 2: 193 if sys.version_info[0] == 2:
194 self.clientType = 'Python2' 194 self.clientType = 'Python2'
195 else: 195 else:
196 self.clientType = 'Python3' 196 self.clientType = 'Python3'
197 # Change clientType if dependent interpreter not exist anymore (maybe deinstalled,...) 197 # Change clientType if dependent interpreter not exist anymore
198 elif self.clientType == 'Python2' and Preferences.getDebugger("PythonInterpreter") == '': 198 # (maybe deinstalled,...)
199 elif self.clientType == 'Python2' and Preferences.getDebugger(
200 "PythonInterpreter") == '':
199 self.clientType = 'Python3' 201 self.clientType = 'Python3'
200 elif self.clientType == 'Python3' and Preferences.getDebugger("Python3Interpreter") == '': 202 elif self.clientType == 'Python3' and Preferences.getDebugger(
203 "Python3Interpreter") == '':
201 self.clientType = 'Python2' 204 self.clientType = 'Python2'
202 205
203 self.lastClientType = '' 206 self.lastClientType = ''
204 self.__autoClearShell = False 207 self.__autoClearShell = False
205 208

eric ide

mercurial