From 0aa7927b0c7c746dd0bd0422598fc3a5f414bd49 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Tue, 27 Sep 2011 18:12:23 +0200 Subject: remove cmd args after evaluating --- index.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.py b/index.py index 7e82cdf..44acc74 100755 --- a/index.py +++ b/index.py @@ -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() -- cgit v1.2.3-1-g7c22