equal
deleted
inserted
replaced
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: |