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
View File
+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 = [
+1 -1
View File
@@ -14,7 +14,7 @@ setuptools.setup(
long_description_content_type = "text/markdown",
license = "GNU General Public License v3",
url = "https://github.com/vkbo/novelWriter",
scripts = ["novelWriter"],
entry_points={"console_scripts": ["novelWriter=nw:main"]},
packages = setuptools.find_packages(exclude=["docs","tests","sample"]),
include_package_data = True,
package_data = {"": ["*.conf"]},