labscript_utils.excepthook.install_thread_excepthook

labscript_utils.excepthook.install_thread_excepthook()[source]

Workaround for sys.excepthook thread bug (https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1230540&group_id=5470). Call once from __main__ before creating any threads.