dabo Commit
Revision 6168
Date: 2010-10-26 17:30:02 -0700 (Tue, 26 Oct 2010)
Author: Ed
Trac: http://trac.dabodev.com/changeset/6168
Changed:
U trunk/dabo/__init__.py
U trunk/dabo/settings.py
Log:
Added the 'importDebugger' setting. Default=True, which preserves current
behavior. If you are using an environment with its own debugger, override this
setting to False.
Diff:
Modified: trunk/dabo/__init__.py
===================================================================
--- trunk/dabo/__init__.py 2010-10-26 15:53:45 UTC (rev 6167)
+++ trunk/dabo/__init__.py 2010-10-27 00:30:02 UTC (rev 6168)
@@ -288,11 +288,15 @@
from lib.utils import ustr
from dBug import logPoint
-try:
- import pudb as pdb
-except ImportError:
- import pdb
-trace = pdb.set_trace
+if importDebugger:
+ try:
+ import pudb as pdb
+ except ImportError:
+ import pdb
+ trace = pdb.set_trace
+else:
+ def trace():
+ raise NotImplementedError
from dApp import dApp
from dPref import dPref
Modified: trunk/dabo/settings.py
===================================================================
--- trunk/dabo/settings.py 2010-10-26 15:53:45 UTC (rev 6167)
+++ trunk/dabo/settings.py 2010-10-27 00:30:02 UTC (rev 6168)
@@ -205,6 +205,9 @@
reportTTFontFilePath = None
reportTTFontFileMap = {}
+# Determines if we import the debugger into the dabo namespace
+importDebugger = True
+
### Settings - end
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]