Clean up the launcher script, and some other bits.

This commit is contained in:
Veronica K. B. Olsen
2020-05-15 23:43:32 +02:00
parent 5d7dfd3cea
commit 752ec8a52b
2 changed files with 2 additions and 18 deletions
-16
View File
@@ -3,10 +3,6 @@
import sys
if sys.hexversion < 0x030600F0:
print("ERROR: At least Python 3.6 is required")
sys.exit(1)
try:
import PyQt5.QtWidgets
import PyQt5.QtGui
@@ -15,18 +11,6 @@ except:
print("ERROR: Failed to load dependency python3-pyqt5")
sys.exit(1)
try:
import PyQt5.QtSvg
except:
print("ERROR: Failed to load dependency python3-pyqt5.qtsvg")
sys.exit(1)
try:
import lxml
except:
print("ERROR: Failed to load dependency python3-lxml")
sys.exit(1)
if __name__ == "__main__":
import nw
nw.main(sys.argv[1:])
+2 -2
View File
@@ -67,7 +67,7 @@ __credits__ = [
# VERBOSE Use for outputting values and program flow details
#
# Adding verbose logging levels
# Add verbose logging level
VERBOSE = 5
logging.addLevelName(VERBOSE, "VERBOSE")
def logVerbose(self, message, *args, **kws):
@@ -254,8 +254,8 @@ def main(sysArgs=None):
errApp.exec_()
sys.exit(1)
# Finish initialising config, and launch GUI
CONFIG.initConfig(confPath, dataPath)
if testMode:
nwGUI = GuiMain()
return nwGUI