eric6/Debugger/DebugServer.py

branch
without_py2_and_pyqt4
changeset 7192
a22eee00b052
parent 6942
2602857055c5
child 7229
53054eb5b15a
equal deleted inserted replaced
7191:960850ec284c 7192:a22eee00b052
6 """ 6 """
7 Module implementing the debug server. 7 Module implementing the debug server.
8 """ 8 """
9 9
10 from __future__ import unicode_literals 10 from __future__ import unicode_literals
11 try:
12 str = unicode
13 except NameError:
14 pass
15 11
16 import os 12 import os
17 import sys 13 import sys
18 14
19 from PyQt5.QtCore import pyqtSignal, QModelIndex 15 from PyQt5.QtCore import pyqtSignal, QModelIndex
218 self.clientProcess = None 214 self.clientProcess = None
219 self.clientInterpreter = "" 215 self.clientInterpreter = ""
220 self.clientType = \ 216 self.clientType = \
221 Preferences.Prefs.settings.value('DebugClient/Type') 217 Preferences.Prefs.settings.value('DebugClient/Type')
222 if self.clientType is None: 218 if self.clientType is None:
223 if sys.version_info[0] == 2: 219 self.clientType = 'Python3'
224 self.clientType = 'Python2'
225 else:
226 self.clientType = 'Python3'
227 # Change clientType if dependent interpreter does not exist anymore 220 # Change clientType if dependent interpreter does not exist anymore
228 # (maybe deinstalled,...) 221 # (maybe deinstalled,...)
229 elif self.clientType == 'Python2' and Preferences.getDebugger( 222 elif self.clientType == 'Python2' and Preferences.getDebugger(
230 "Python2VirtualEnv") == '' and sys.version_info[0] == 3: 223 "Python2VirtualEnv") == '' and sys.version_info[0] == 3:
231 self.clientType = 'Python3' 224 self.clientType = 'Python3'

eric ide

mercurial