Some changes to core classes and files to support the test suite

This commit is contained in:
Veronica K. B. Olsen
2019-05-12 13:29:41 +02:00
parent 223db59e3d
commit edab608c3b
3 changed files with 16 additions and 9 deletions
+4 -3
View File
@@ -62,7 +62,6 @@ logger = logging.getLogger(__name__)
# Load the main config as a global object
CONFIG = Config()
CONFIG.initConfig()
def main(sysArgs):
"""Parses command line, sets up logging, and launches main GUI.
@@ -149,10 +148,10 @@ def main(sysArgs):
showGUI = False
elif inOpt in ("-D","--debuggui"):
debugLevel = logging.DEBUG
debugStr = "{name:>22}:{lineno:<4d} {levelname:8} {message:}"
debugStr = "{name:>20}:{lineno:<4d} {levelname:8} {message:}"
debugGUI = True
# Set GUI options
# Set Config Options
CONFIG.showGUI = showGUI
CONFIG.debugGUI = debugGUI
@@ -179,6 +178,8 @@ def main(sysArgs):
logger.setLevel(debugLevel)
CONFIG.initConfig(confPath)
nwApp = QApplication([])
nwGUI = NovelWriter()
exit(nwApp.exec_())