equal
deleted
inserted
replaced
38 beremiz_dir = paths.AbsDir(__file__) |
38 beremiz_dir = paths.AbsDir(__file__) |
39 |
39 |
40 |
40 |
41 def Bpath(*args): |
41 def Bpath(*args): |
42 return os.path.join(beremiz_dir, *args) |
42 return os.path.join(beremiz_dir, *args) |
43 |
|
44 |
|
45 |
43 |
46 import wx.lib.buttons |
44 import wx.lib.buttons |
47 import wx.lib.statbmp |
45 import wx.lib.statbmp |
48 import wx.stc |
46 import wx.stc |
49 import cPickle |
47 import cPickle |
395 # with working dir set to mingw/bin. |
393 # with working dir set to mingw/bin. |
396 # then we prefix CWD to PATH in order to ensure that |
394 # then we prefix CWD to PATH in order to ensure that |
397 # commands invoked by build process by default are |
395 # commands invoked by build process by default are |
398 # found here. |
396 # found here. |
399 os.environ["PATH"] = os.getcwd()+';'+os.environ["PATH"] |
397 os.environ["PATH"] = os.getcwd()+';'+os.environ["PATH"] |
400 |
|
401 |
398 |
402 def __init__(self, parent, projectOpen=None, buildpath=None, ctr=None, debug=True): |
399 def __init__(self, parent, projectOpen=None, buildpath=None, ctr=None, debug=True): |
403 # Add beremiz's icon in top left corner of the frame |
400 # Add beremiz's icon in top left corner of the frame |
404 self.icon = wx.Icon(Bpath("images", "brz.ico"), wx.BITMAP_TYPE_ICO) |
401 self.icon = wx.Icon(Bpath("images", "brz.ico"), wx.BITMAP_TYPE_ICO) |
405 self.__init_execute_path() |
402 self.__init_execute_path() |