diff -r c02818d7e29f -r 7e61baa047f0 BeremizIDE.py --- a/BeremizIDE.py Mon Aug 14 22:30:41 2017 +0300 +++ b/BeremizIDE.py Mon Aug 14 23:27:15 2017 +0300 @@ -37,6 +37,7 @@ beremiz_dir = paths.AbsDir(__file__) + def Bpath(*args): return os.path.join(beremiz_dir,*args) @@ -88,6 +89,8 @@ MainThread = currentThread().ident REFRESH_PERIOD = 0.1 from time import time as gettime + + class LogPseudoFile: """ Base class for file like objects to facilitate StdOut for the Shell.""" def __init__(self, output, risecall): @@ -213,6 +216,7 @@ EncodeFileSystemPath, DecodeFileSystemPath from util.BitmapLibrary import GetBitmap + class Beremiz(IDEFrame): def _init_utils(self): @@ -1086,6 +1090,7 @@ Max_Traceback_List_Size = 20 + def Display_Exception_Dialog(e_type, e_value, e_tb, bug_report_path): trcbck_lst = [] for i,line in enumerate(traceback.extract_tb(e_tb)): @@ -1124,6 +1129,7 @@ return res + def get_last_traceback(tb): while tb.tb_next: tb = tb.tb_next @@ -1136,6 +1142,7 @@ ignored_exceptions = [] # a problem with a line in a module is only reported once per session + def AddExceptHook(path, app_version='[No version]'):#, ignored_exceptions=[]): def save_bug_report(e_type, e_value, e_traceback, bug_report_path,date):