diff --git a/config.py b/config.py index 3fd47dc1d..45f31e4c3 100644 --- a/config.py +++ b/config.py @@ -6,4 +6,8 @@ debug = False #Path autodetection, only change if it doesn't work path = os.path.dirname(unicode(__file__, sys.getfilesystemencoding())) homePath = os.path.expanduser(os.path.join("~", ".pyfa")) +saveddata = os.path.join(homePath, "saveddata.db") +# saveddata db location modifier, shouldn't ever need to touch this +import eos.config +eos.config.saveddata_connectionstring = "sqlite:///" + saveddata \ No newline at end of file diff --git a/run.py b/run.py index bc7ea5a57..357e33b88 100644 --- a/run.py +++ b/run.py @@ -20,8 +20,15 @@ from gui.mainFrame import MainFrame import wx +import config +import os.path +import eos.db if __name__ == "__main__": + #Make sure the saveddata db exists + if not os.path.exists(config.saveddata): + eos.db.saveddata_meta.create_all() + pyfa = wx.App(False) MainFrame() pyfa.MainLoop()