changeset 1952:7088d60fde7e

leave cool ipython exc handler in run_local.py Ignore-this: 11bd28c361de6a84ec70d55e0f18a242
author Drew Perttula <drewp@bigasterisk.com>
date Thu, 06 Jun 2019 00:12:02 +0000
parents 9f0f2b39ad95
children 9dd331caa23b
files bin/run_local.py
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/bin/run_local.py	Thu Jun 06 00:09:39 2019 +0000
+++ b/bin/run_local.py	Thu Jun 06 00:12:02 2019 +0000
@@ -52,6 +52,12 @@
 except ImportError:
     pass
 
+if 0:
+    from IPython.core import ultratb
+    sys.excepthook = ultratb.FormattedTB(mode='Verbose',
+                                         color_scheme='Linux',
+                                         call_pdb=1)
+
 progName = sys.argv[0].split('/')[-1]
 log = logging.getLogger()  # this has to get the root logger
 log.name = progName  # but we can rename it for clarity