From 2456dd9bbce7afc796a08efbfcd6e9d9f4439871 Mon Sep 17 00:00:00 2001 From: pictuga Date: Fri, 28 Aug 2020 19:38:48 +0200 Subject: [PATCH] Fix broken pieces Including #43 --- morss/__main__.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/morss/__main__.py b/morss/__main__.py index bdbee44..594fd14 100644 --- a/morss/__main__.py +++ b/morss/__main__.py @@ -52,7 +52,7 @@ def main(): app = wsgi.cgi_error_handler(app) app = wsgi.cgi_encode(app) - print('Serving http://localhost:%s/' % port) + print('Serving http://localhost:%s/' % PORT) httpd = wsgiref.simple_server.make_server('', PORT, app) httpd.serve_forever() diff --git a/setup.py b/setup.py index 2ed440f..4817dc3 100644 --- a/setup.py +++ b/setup.py @@ -20,5 +20,5 @@ setup( ('share/' + package_name + '/www/cgi', []) ], entry_points = { - 'console_scripts': [package_name + '=' + package_name + ':main'] + 'console_scripts': [package_name + '=' + package_name + '.__main__:main'] })