From 4f9000beed8c4751354b520acdb076d229e3f504 Mon Sep 17 00:00:00 2001 From: pictuga Date: Fri, 28 Aug 2015 19:18:09 +0200 Subject: [PATCH] Comment code of launching modes --- morss/morss.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/morss/morss.py b/morss/morss.py index 9064bb4..3256f8f 100644 --- a/morss/morss.py +++ b/morss/morss.py @@ -669,14 +669,17 @@ def cli_app(): def main(): if 'REQUEST_URI' in os.environ: + # mod_cgi wsgiref.handlers.CGIHandler().run(cgi_wrapper) elif len(sys.argv) <= 1: + # start internal (basic) http server print('Serving http://localhost:%s/'%PORT) httpd = wsgiref.simple_server.make_server('', PORT, cgi_wrapper) httpd.serve_forever() else: + # as a CLI app try: cli_app() except (KeyboardInterrupt, SystemExit):