diff options
Diffstat (limited to 'index.py')
-rwxr-xr-x | index.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -112,10 +112,13 @@ class new: if __name__ == "__main__": - if not '--debug' in sys.argv: + if '--debug' in sys.argv: + sys.argv.remove('--debug') + else: config.debug = False if '--fastcgi' in sys.argv: wsgi.runwsgi = lambda func, addr=None: wsgi.runfcgi(func, addr) + sys.argv.remove('--fastcgi') app.run() |