From c1b508aae85c8f2f77d76d9d9cc03c725021495c Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Sun, 17 May 2020 00:09:49 +0200 Subject: [PATCH] Fix the dependency checks --- nw/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nw/__init__.py b/nw/__init__.py index e09f686a..9d27b993 100644 --- a/nw/__init__.py +++ b/nw/__init__.py @@ -34,7 +34,6 @@ from os import path, remove, rename from PyQt5.QtGui import QIcon from PyQt5.QtWidgets import QApplication, QErrorMessage -from nw.guimain import GuiMain from nw.config import Config __package__ = "novelWriter" @@ -254,8 +253,11 @@ def main(sysArgs=None): errApp.exec_() sys.exit(1) - # Finish initialising config, and launch GUI + # Finish initialising config CONFIG.initConfig(confPath, dataPath) + + # Import GUI (after dependency checks), and launch + from nw.guimain import GuiMain if testMode: nwGUI = GuiMain() return nwGUI