From 9e56f27a22013f2f3e778b9539e34c54c5120a22 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Thu, 31 Oct 2019 18:14:03 +0100 Subject: [PATCH] Added GUI only version to the setuptools script --- nw/__init__.py | 2 +- setup.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/nw/__init__.py b/nw/__init__.py index dd091a10..6954a746 100644 --- a/nw/__init__.py +++ b/nw/__init__.py @@ -144,7 +144,7 @@ def main(sysArgs=None): sys.exit() elif inOpt in ("-d", "--debug"): debugLevel = logging.DEBUG - debugStr = "{name:>22}:{lineno:<4d} {levelname:8} {message:}" + debugStr = "{name:>30}:{lineno:<4d} {levelname:8} {message:}" elif inOpt in ("-l","--logfile"): logFile = inArg toFile = True diff --git a/setup.py b/setup.py index 9e24b86e..bbcb1586 100755 --- a/setup.py +++ b/setup.py @@ -14,7 +14,10 @@ setuptools.setup( long_description_content_type = "text/markdown", license = "GNU General Public License v3", url = "https://github.com/vkbo/novelWriter", - entry_points={"console_scripts": ["novelWriter=nw:main"]}, + entry_points = { + "console_scripts" : ["novelWriter=nw:main"], + "gui_scripts" : ["novelWriter-gui=nw:main"], + }, packages = setuptools.find_packages(exclude=["docs","tests","sample"]), include_package_data = True, package_data = {"": ["*.conf"]},