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