Show More
@@ -27,6 +27,7 b' Authors:' | |||
|
27 | 27 | # Imports |
|
28 | 28 | #----------------------------------------------------------------------------- |
|
29 | 29 | |
|
30 | import atexit | |
|
30 | 31 | import glob |
|
31 | 32 | import logging |
|
32 | 33 | import os |
@@ -156,6 +157,9 b' class BaseIPythonApplication(Application):' | |||
|
156 | 157 | """Create a crash handler, typically setting sys.excepthook to it.""" |
|
157 | 158 | self.crash_handler = self.crash_handler_class(self) |
|
158 | 159 | sys.excepthook = self.crash_handler |
|
160 | def unset_crashhandler(): | |
|
161 | sys.excepthook = sys.__excepthook__ | |
|
162 | atexit.register(unset_crashhandler) | |
|
159 | 163 | |
|
160 | 164 | def _ipython_dir_changed(self, name, old, new): |
|
161 | 165 | if old in sys.path: |
General Comments 0
You need to be logged in to leave comments.
Login now