Preferences/__init__.py

branch
5_5_x
changeset 3925
5afc73bf9c57
parent 3916
1d54f7cd2de7
child 3930
2968e0bfcaea
--- a/Preferences/__init__.py	Tue Nov 11 19:14:58 2014 +0100
+++ b/Preferences/__init__.py	Sat Nov 15 15:57:33 2014 +0100
@@ -80,10 +80,6 @@
         "DebugClientType3": "standard",
         # supported "standard", "threaded", "custom"
         "DebugClient3": "",
-        "PythonExtensions": ".py2 .pyw2 .ptl",
-        # space separated list of Python extensions
-        "Python3Extensions": ".py .pyw .py3 .pyw3",
-        # space separated list of Python3 extensions
         "DebugEnvironmentReplace": False,
         "DebugEnvironment": "",
         "PythonRedirect": True,
@@ -100,6 +96,16 @@
         "AutoViewSourceCode": False,
     }
     debuggerDefaults["AllowedHosts"] = ["127.0.0.1", "::1%0"]
+    if sys.version_info[0] == 2:
+        debuggerDefaults["PythonExtensions"] = ".py .pyw .py2 .pyw2 .ptl",
+        # space separated list of Python extensions
+        debuggerDefaults["Python3Extensions"] = ".py .pyw .py3 .pyw3",
+        # space separated list of Python3 extensions
+    else:
+        debuggerDefaults["PythonExtensions"] = ".py2 .pyw2 .ptl",
+        # space separated list of Python extensions
+        debuggerDefaults["Python3Extensions"] = ".py .pyw .py3 .pyw3",
+        # space separated list of Python3 extensions
     
     # defaults for the UI settings
     uiDefaults = {

eric ide

mercurial