Move the pyfa app initialization back to where it was

This commit is contained in:
blitzmann
2020-07-11 12:27:09 -04:00
parent e536aa5f1c
commit 04f9c1c9f8

View File

@@ -125,10 +125,6 @@ if __name__ == "__main__":
if db_needs_update() is True:
update_db()
from gui.app import PyfaApp
pyfa = PyfaApp(False)
# Lets get to the good stuff, shall we?
import eos.db
import eos.events # todo: move this to eos initialization?
@@ -141,11 +137,14 @@ if __name__ == "__main__":
os.mkdir(config.savePath)
eos.db.saveddata_meta.create_all()
from gui.app import PyfaApp
# set title if it wasn't supplied by argument
if options.title is None:
options.title = "pyfa %s - Python Fitting Assistant" % (config.getVersion())
pyfa = PyfaApp(False)
from gui.mainFrame import MainFrame
mf = MainFrame(options.title)