Beremiz.py
changeset 308 d7b0b2d8854c
parent 296 37b2b4adbb1d
child 314 ad4db7099355
equal deleted inserted replaced
307:b80d3a84b8bf 308:d7b0b2d8854c
  1219         if dialog.ShowModal() == wx.ID_OK:
  1219         if dialog.ShowModal() == wx.ID_OK:
  1220             projectpath = dialog.GetPath()
  1220             projectpath = dialog.GetPath()
  1221             dialog.Destroy()
  1221             dialog.Destroy()
  1222             config.Write("lastopenedfolder", os.path.dirname(projectpath))
  1222             config.Write("lastopenedfolder", os.path.dirname(projectpath))
  1223             config.Flush()
  1223             config.Flush()
  1224             self.PluginRoot = PluginsRoot(self, self.Log, self.runtime_port)
  1224             self.PluginRoot = PluginsRoot(self, self.Log)
  1225             res = self.PluginRoot.NewProject(projectpath)
  1225             res = self.PluginRoot.NewProject(projectpath)
  1226             if not res :
  1226             if not res :
  1227                 self.RefreshAll()
  1227                 self.RefreshAll()
  1228                 self.RefreshMainMenu()
  1228                 self.RefreshMainMenu()
  1229             else:
  1229             else:
  1242         if dialog.ShowModal() == wx.ID_OK:
  1242         if dialog.ShowModal() == wx.ID_OK:
  1243             projectpath = dialog.GetPath()
  1243             projectpath = dialog.GetPath()
  1244             if os.path.isdir(projectpath):
  1244             if os.path.isdir(projectpath):
  1245                 config.Write("lastopenedfolder", os.path.dirname(projectpath))
  1245                 config.Write("lastopenedfolder", os.path.dirname(projectpath))
  1246                 config.Flush()
  1246                 config.Flush()
  1247                 self.PluginRoot = PluginsRoot(self, self.Log, self.runtime_port)
  1247                 self.PluginRoot = PluginsRoot(self, self.Log)
  1248                 result = self.PluginRoot.LoadProject(projectpath)
  1248                 result = self.PluginRoot.LoadProject(projectpath)
  1249                 if not result:
  1249                 if not result:
  1250                     self.RefreshAll()
  1250                     self.RefreshAll()
  1251                     self.RefreshMainMenu()
  1251                     self.RefreshMainMenu()
  1252                 else:
  1252                 else: