summaryrefslogtreecommitdiffstats
path: root/index.py
diff options
context:
space:
mode:
Diffstat (limited to 'index.py')
-rwxr-xr-xindex.py5
1 files changed, 4 insertions, 1 deletions
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()