Debugger/DebuggerInterfacePython3.py

changeset 40
c2e5472b112c
parent 27
1018a0347ae9
child 53
c3eb7cc1ff8b
--- a/Debugger/DebuggerInterfacePython3.py	Fri Jan 08 14:45:03 2010 +0000
+++ b/Debugger/DebuggerInterfacePython3.py	Fri Jan 08 17:04:18 2010 +0000
@@ -10,7 +10,6 @@
 import sys
 import os
 import socket
-import subprocess
 
 from PyQt4.QtCore import *
 from PyQt4.QtGui import QInputDialog, QMessageBox
@@ -42,7 +41,7 @@
         else:
             exts.append(".%s" % ext)
     
-    if exts and Preferences.getDebugger("Python3Interpreter"):
+    if exts:
         return ["Python3", ClientDefaultCapabilities, exts]
     else:
         return ["", 0, []]
@@ -144,13 +143,12 @@
         @return client process object (QProcess) and a flag to indicate
             a network connection (boolean)
         """
-        interpreter = Preferences.getDebugger("Python3Interpreter")
-        if interpreter == "":
-            QMessageBox.critical(None,
-                self.trUtf8("Start Debugger"),
-                self.trUtf8(\
-                    """<p>No Python3 interpreter configured.</p>"""))
-            return None, False
+        if Preferences.getDebugger("CustomPython3Interpreter"):
+            interpreter = Preferences.getDebugger("Python3Interpreter")
+            if interpreter == "":
+                interpreter = sys.executable
+        else:
+            interpreter = sys.executable
         
         debugClientType = Preferences.getDebugger("DebugClientType3")
         if debugClientType == "standard":

eric ide

mercurial