From 3c0ecd8203ef0d9a295c3eb126827f3302ba874a Mon Sep 17 00:00:00 2001 From: Thomas Klaehn Date: Thu, 4 Feb 2021 16:01:06 +0100 Subject: [PATCH] tmp --- weblight/__init__.py | 2 ++ weblight/{__main__.py => app.py} | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) rename weblight/{__main__.py => app.py} (87%) diff --git a/weblight/__init__.py b/weblight/__init__.py index e69de29..0ccc333 100644 --- a/weblight/__init__.py +++ b/weblight/__init__.py @@ -0,0 +1,2 @@ +from .app import app + diff --git a/weblight/__main__.py b/weblight/app.py similarity index 87% rename from weblight/__main__.py rename to weblight/app.py index 2dc4dde..aaf6cd1 100644 --- a/weblight/__main__.py +++ b/weblight/app.py @@ -27,5 +27,5 @@ def reroute(state): response = make_response(redirect(url_for('index'))) return response -if __name__ == '__main__': - app.run(debug=False, host='0.0.0.0', port=8000) +#if __name__ == '__main__': +# app.run(debug=False, host='0.0.0.0', port=8000)