Debugger/DebugServer.py

branch
Py2 comp.
changeset 2573
71837b5366d5
parent 2526
a91cba8291b9
child 3057
10516539f238
diff -r dc6d76ab5d10 -r 71837b5366d5 Debugger/DebugServer.py
--- a/Debugger/DebugServer.py	Wed Apr 10 22:21:27 2013 +0200
+++ b/Debugger/DebugServer.py	Wed Apr 10 22:33:47 2013 +0200
@@ -187,6 +187,11 @@
                 self.clientType = 'Python2'
             else:
                 self.clientType = 'Python3'
+        # Change clientType if dependent interpreter not exist anymore (maybe deinstalled,...)
+        elif self.clientType == 'Python2' and Preferences.getDebugger("PythonInterpreter") == '':
+            self.clientType = 'Python3'
+        elif self.clientType == 'Python3' and Preferences.getDebugger("Python3Interpreter") == '':
+            self.clientType = 'Python2'
         
         self.lastClientType = ''
         self.__autoClearShell = False

eric ide

mercurial