22 # You should have received a copy of the GNU General Public License |
22 # You should have received a copy of the GNU General Public License |
23 # along with this program; if not, write to the Free Software |
23 # along with this program; if not, write to the Free Software |
24 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
24 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
25 |
25 |
26 |
26 |
27 import os, sys |
27 import os |
|
28 import sys |
28 import tempfile |
29 import tempfile |
29 import shutil |
30 import shutil |
30 import random |
31 import random |
31 import time |
32 import time |
32 import version |
33 import version |
|
34 |
33 import util.paths as paths |
35 import util.paths as paths |
34 from types import ListType |
36 from types import ListType |
35 |
37 |
36 beremiz_dir = paths.AbsDir(__file__) |
38 beremiz_dir = paths.AbsDir(__file__) |
37 |
39 |
38 def Bpath(*args): |
40 def Bpath(*args): |
39 return os.path.join(beremiz_dir,*args) |
41 return os.path.join(beremiz_dir,*args) |
40 |
42 |
41 |
43 |
42 |
44 |
43 import wx.lib.buttons, wx.lib.statbmp, wx.stc |
45 import wx.lib.buttons |
|
46 import wx.lib.statbmp |
|
47 import wx.stc |
44 import cPickle |
48 import cPickle |
45 import types, time, re, platform, time, traceback, commands |
49 import types |
|
50 import time |
|
51 import re |
|
52 import platform |
|
53 import time |
|
54 import traceback |
|
55 import commands |
46 |
56 |
47 from docutil import OpenHtmlFrame |
57 from docutil import OpenHtmlFrame |
48 from editors.EditorPanel import EditorPanel |
58 from editors.EditorPanel import EditorPanel |
49 from editors.Viewer import Viewer |
59 from editors.Viewer import Viewer |
50 from editors.TextViewer import TextViewer |
60 from editors.TextViewer import TextViewer |
1069 IDEFrame.ShowHighlight(self, infos, start, end, highlight_type) |
1079 IDEFrame.ShowHighlight(self, infos, start, end, highlight_type) |
1070 |
1080 |
1071 #------------------------------------------------------------------------------- |
1081 #------------------------------------------------------------------------------- |
1072 # Exception Handler |
1082 # Exception Handler |
1073 #------------------------------------------------------------------------------- |
1083 #------------------------------------------------------------------------------- |
1074 import threading, traceback |
1084 import threading |
|
1085 import traceback |
1075 |
1086 |
1076 Max_Traceback_List_Size = 20 |
1087 Max_Traceback_List_Size = 20 |
1077 |
1088 |
1078 def Display_Exception_Dialog(e_type, e_value, e_tb, bug_report_path): |
1089 def Display_Exception_Dialog(e_type, e_value, e_tb, bug_report_path): |
1079 trcbck_lst = [] |
1090 trcbck_lst = [] |