From b62fafe5205ac482b8cbf161e84e133903ea7d29 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Wed, 3 Feb 2021 15:21:01 +0100 Subject: [PATCH] Add source headers to setup and start files, and keep windows start file --- .gitignore | 1 - novelWriter.py | 5 +++++ novelWriter.pyw | 15 +++++++++++++++ setup.py | 26 +++++++++++++++++++++----- 4 files changed, 41 insertions(+), 6 deletions(-) create mode 100644 novelWriter.pyw diff --git a/.gitignore b/.gitignore index ddf7063c..66c21d61 100644 --- a/.gitignore +++ b/.gitignore @@ -7,7 +7,6 @@ *.egg-info setup.iss novelwriter.desktop -novelWriter.pyw # Documentation /docs/build/ diff --git a/novelWriter.py b/novelWriter.py index d6c7deb7..9cd0784c 100755 --- a/novelWriter.py +++ b/novelWriter.py @@ -1,5 +1,10 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- +""" +novelWriter – Linux Start Script +================================ +The main start script for Linux +""" import sys diff --git a/novelWriter.pyw b/novelWriter.pyw new file mode 100644 index 00000000..a85f38ce --- /dev/null +++ b/novelWriter.pyw @@ -0,0 +1,15 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +novelWriter – Windows Start Script +================================== +The main start script for Windows +""" + +import os + +os.curdir = os.path.abspath(os.path.dirname(__file__)) + +if __name__ == "__main__": + import nw + nw.main() diff --git a/setup.py b/setup.py index 0a12a57e..a13ab6c4 100755 --- a/setup.py +++ b/setup.py @@ -1,12 +1,28 @@ #!/usr/bin/env python3 +# -*- coding: utf-8 -*- """ -The main setup script for novelWriter. +novelWriter – Main Setup Script +=============================== +The main setup and install script for all operating systems -It runs the standard setuptool.setup() with all options taken from the -setup.cfg file. +File History: +Created: 2019-05-16 [0.5.1] -In addition, a few specialised commands are available. These are -described in the help text in the main section. +This file is a part of novelWriter +Copyright 2018–2021, Veronica Berglyd Olsen + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . """ import os