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
|
# Load the main config as a global object
|
||||||
CONFIG = Config()
|
CONFIG = Config()
|
||||||
|
|
||||||
def main(sysArgs):
|
def main(sysArgs=None):
|
||||||
"""Parses command line, sets up logging, and launches main GUI.
|
"""Parses command line, sets up logging, and launches main GUI.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
if sysArgs is None:
|
||||||
|
sysArgs = sys.argv[1:]
|
||||||
|
|
||||||
# Valid Input Options
|
# Valid Input Options
|
||||||
shortOpt = "hdDqtl:v"
|
shortOpt = "hdDqtl:v"
|
||||||
longOpt = [
|
longOpt = [
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ setuptools.setup(
|
|||||||
long_description_content_type = "text/markdown",
|
long_description_content_type = "text/markdown",
|
||||||
license = "GNU General Public License v3",
|
license = "GNU General Public License v3",
|
||||||
url = "https://github.com/vkbo/novelWriter",
|
url = "https://github.com/vkbo/novelWriter",
|
||||||
scripts = ["novelWriter"],
|
entry_points={"console_scripts": ["novelWriter=nw:main"]},
|
||||||
packages = setuptools.find_packages(exclude=["docs","tests","sample"]),
|
packages = setuptools.find_packages(exclude=["docs","tests","sample"]),
|
||||||
include_package_data = True,
|
include_package_data = True,
|
||||||
package_data = {"": ["*.conf"]},
|
package_data = {"": ["*.conf"]},
|
||||||
|
|||||||
Reference in New Issue
Block a user