From 04f9c1c9f8f2cec9fb856f1cda03eb9fdfaa93b0 Mon Sep 17 00:00:00 2001 From: blitzmann Date: Sat, 11 Jul 2020 12:27:09 -0400 Subject: [PATCH] Move the pyfa app initialization back to where it was --- pyfa.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pyfa.py b/pyfa.py index 81af6310a..f0063f8d6 100755 --- a/pyfa.py +++ b/pyfa.py @@ -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)