Commit b0ce2e5a authored by Julian Rother's avatar Julian Rother
Browse files

Fix debug mode detection for default config

parent 0690d180
#!/usr/bin/env python
from server import *
global is_debug
is_debug = True
if __name__ == '__main__':
......@@ -4,6 +4,7 @@ from functools import wraps
from datetime import date, timedelta, datetime, time, MINYEAR
import threading
import os
import sys
import hashlib
import random
......@@ -24,7 +25,7 @@ timer.start()
config = app.config
config.from_pyfile('', silent=True)
if 'is_debug' in globals():
if not sys.argv[0].endswith(''):
config['SQLITE_INIT_DATA'] = False
config['DEBUG'] = False
config.from_pyfile('', silent=True)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment