From 30c5c85aa8ee81c49ca621cd635bfe27ac8f5880 Mon Sep 17 00:00:00 2001 From: Niklas Elsbrock Date: Tue, 10 Aug 2021 17:34:06 +0200 Subject: [PATCH] =?UTF-8?q?=5F=5Fmain=5F=5F.py=20hinzugef=C3=BCgt,=20wsgi.?= =?UTF-8?q?py=20entfernt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MANIFEST.in | 1 - nateman/__main__.py | 2 ++ wsgi.py | 12 ------------ 3 files changed, 2 insertions(+), 13 deletions(-) create mode 100644 nateman/__main__.py delete mode 100644 wsgi.py diff --git a/MANIFEST.in b/MANIFEST.in index e474582..806d55b 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,3 @@ -include wsgi.py graft nateman/resources graft nateman/static graft nateman/templates diff --git a/nateman/__main__.py b/nateman/__main__.py new file mode 100644 index 0000000..5eb776a --- /dev/null +++ b/nateman/__main__.py @@ -0,0 +1,2 @@ +from . import create_app +create_app().run() diff --git a/wsgi.py b/wsgi.py deleted file mode 100644 index 8aa589f..0000000 --- a/wsgi.py +++ /dev/null @@ -1,12 +0,0 @@ -""" -WSGI-Schnittstelle. Startet NateMan. -von Niklas Elsbrock -""" - -from nateman import create_app - - -if __name__ == "__main__": - create_app().run() -else: - app = create_app()