Let's keep the main launcher novelWriter.py and let setuptools handle the rest
This commit is contained in:
+4
-1
@@ -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 = [
|
||||
|
||||
@@ -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"]},
|
||||
|
||||
Reference in New Issue
Block a user