--- a/Toolbox/Startup.py Tue Feb 05 19:35:13 2019 +0100 +++ b/Toolbox/Startup.py Wed Feb 06 19:14:50 2019 +0100 @@ -24,6 +24,8 @@ from eric6config import getConfig +application = None + def usage(appinfo, optlen=12): """ @@ -220,11 +222,14 @@ handler dialog (boolean) @return exit result (integer) """ + global application + handleArgs(argv, appinfo) if app is None: # set the library paths for plugins setLibraryPaths() app = E5Application(argv) + application = app app.setQuitOnLastWindowClosed(quitOnLastWindowClosed) # the following code depends upon a valid application object