Fix the dependency checks
This commit is contained in:
+4
-2
@@ -34,7 +34,6 @@ from os import path, remove, rename
|
|||||||
from PyQt5.QtGui import QIcon
|
from PyQt5.QtGui import QIcon
|
||||||
from PyQt5.QtWidgets import QApplication, QErrorMessage
|
from PyQt5.QtWidgets import QApplication, QErrorMessage
|
||||||
|
|
||||||
from nw.guimain import GuiMain
|
|
||||||
from nw.config import Config
|
from nw.config import Config
|
||||||
|
|
||||||
__package__ = "novelWriter"
|
__package__ = "novelWriter"
|
||||||
@@ -254,8 +253,11 @@ def main(sysArgs=None):
|
|||||||
errApp.exec_()
|
errApp.exec_()
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
# Finish initialising config, and launch GUI
|
# Finish initialising config
|
||||||
CONFIG.initConfig(confPath, dataPath)
|
CONFIG.initConfig(confPath, dataPath)
|
||||||
|
|
||||||
|
# Import GUI (after dependency checks), and launch
|
||||||
|
from nw.guimain import GuiMain
|
||||||
if testMode:
|
if testMode:
|
||||||
nwGUI = GuiMain()
|
nwGUI = GuiMain()
|
||||||
return nwGUI
|
return nwGUI
|
||||||
|
|||||||
Reference in New Issue
Block a user