diff --git a/pysollib/app.py b/pysollib/app.py index 67dbb2fe..e02384d4 100644 --- a/pysollib/app.py +++ b/pysollib/app.py @@ -132,6 +132,7 @@ class Application: config=config, plugins=os.path.join(config, "plugins"), savegames=os.path.join(config, "savegames"), + boards=os.path.join(config, "boards"), maint=os.path.join(config, "maint"), # debug ) for k, v in self.dn.__dict__.items(): diff --git a/pysollib/main.py b/pysollib/main.py index 6021b124..38989570 100644 --- a/pysollib/main.py +++ b/pysollib/main.py @@ -179,6 +179,7 @@ def pysol_init(app, args): for d in ( app.dn.config, app.dn.savegames, + app.dn.boards, os.path.join(app.dn.config, "music"), # os.path.join(app.dn.config, "screenshots"), os.path.join(app.dn.config, "tiles"), diff --git a/pysollib/ui/tktile/menubar.py b/pysollib/ui/tktile/menubar.py index 8f383e21..bfa4b898 100644 --- a/pysollib/ui/tktile/menubar.py +++ b/pysollib/ui/tktile/menubar.py @@ -1457,7 +1457,7 @@ Unsupported game for export. filename += ".board" idir, ifile = os.path.split(os.path.normpath(filename)) if not idir: - idir = self.app.dn.savegames + idir = self.app.dn.boards # print self.game.filename, ifile d = tkinter_tkfiledialog.SaveAs() filename = d.show(filetypes=self.FILETYPES, @@ -1490,7 +1490,7 @@ Unsupported game for import. else: idir, ifile = "", "" if not idir: - idir = self.app.dn.savegames + idir = self.app.dn.boards d = tkinter_tkfiledialog.Open() key = 'PYSOL_DEBUG_IMPORT' if key not in os.environ: