463 |
463 |
464 self.ConnectionStatusBar = wx.StatusBar(self, style=wx.ST_SIZEGRIP) |
464 self.ConnectionStatusBar = wx.StatusBar(self, style=wx.ST_SIZEGRIP) |
465 self._init_coll_ConnectionStatusBar_Fields(self.ConnectionStatusBar) |
465 self._init_coll_ConnectionStatusBar_Fields(self.ConnectionStatusBar) |
466 self.SetStatusBar(self.ConnectionStatusBar) |
466 self.SetStatusBar(self.ConnectionStatusBar) |
467 |
467 |
|
468 def __init_execute_path(self): |
|
469 if os.name == 'nt': |
|
470 # on windows, desktop shortcut launches Beremiz.py |
|
471 # with working dir set to mingw/bin. |
|
472 # then we prefix CWD to PATH in order to ensure that |
|
473 # commands invoked by build process by default are |
|
474 # found here. |
|
475 os.environ["PATH"] = os.getcwd()+';'+os.environ["PATH"] |
|
476 |
|
477 |
468 def __init__(self, parent, projectOpen=None, buildpath=None, ctr=None, debug=True): |
478 def __init__(self, parent, projectOpen=None, buildpath=None, ctr=None, debug=True): |
469 # Add beremiz's icon in top left corner of the frame |
479 # Add beremiz's icon in top left corner of the frame |
470 self.icon = wx.Icon(Bpath("images", "brz.ico"), wx.BITMAP_TYPE_ICO) |
480 self.icon = wx.Icon(Bpath("images", "brz.ico"), wx.BITMAP_TYPE_ICO) |
|
481 self.__init_execute_path() |
471 |
482 |
472 IDEFrame.__init__(self, parent, debug) |
483 IDEFrame.__init__(self, parent, debug) |
473 self.Log = LogPseudoFile(self.LogConsole,self.SelectTab) |
484 self.Log = LogPseudoFile(self.LogConsole,self.SelectTab) |
474 |
485 |
475 self.local_runtime = None |
486 self.local_runtime = None |