BeremizIDE.py
branchpython3
changeset 3755 ca814b175391
parent 3752 9f6f46dbe3ae
child 3758 bc71b19b45ff
equal deleted inserted replaced
3754:98a76dbb1b6d 3755:ca814b175391
   859     def OnNewProjectMenu(self, event):
   859     def OnNewProjectMenu(self, event):
   860         if self.CTR is not None and not self.CheckSaveBeforeClosing():
   860         if self.CTR is not None and not self.CheckSaveBeforeClosing():
   861             return
   861             return
   862 
   862 
   863         try:
   863         try:
   864             defaultpath = DecodeFileSystemPath(self.Config.Read("lastopenedfolder"))
   864             defaultpath = DecodeFileSystemPath(self.Config.Read("lastopenedfolder").encode())
   865         except Exception:
   865         except Exception:
   866             defaultpath = os.path.expanduser("~")
   866             defaultpath = os.path.expanduser("~")
   867 
   867 
   868         dialog = wx.DirDialog(self, _("Choose an empty directory for new project"), defaultpath)
   868         dialog = wx.DirDialog(self, _("Choose an empty directory for new project"), defaultpath)
   869         if dialog.ShowModal() == wx.ID_OK:
   869         if dialog.ShowModal() == wx.ID_OK: