Let's keep the main launcher novelWriter.py and let setuptools handle the rest

This commit is contained in:
Veronica K. B. Olsen
2019-10-31 16:56:50 +01:00
parent c92a0bb5e5
commit 99c165801b
3 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -67,10 +67,13 @@ logger = logging.getLogger(__name__)
# Load the main config as a global object
CONFIG = Config()
def main(sysArgs):
def main(sysArgs=None):
"""Parses command line, sets up logging, and launches main GUI.
"""
if sysArgs is None:
sysArgs = sys.argv[1:]
# Valid Input Options
shortOpt = "hdDqtl:v"
longOpt = [