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'] })