Implement debug flag
This commit is contained in:
parent
ea7584703c
commit
8093835857
|
@ -6,6 +6,7 @@ from klein import Klein
|
|||
# Other library imports
|
||||
from json import dumps
|
||||
from signal import signal, SIGINT
|
||||
from sys import argv
|
||||
|
||||
# Project imports
|
||||
from settings import settings
|
||||
|
@ -90,6 +91,8 @@ class WebApp(util.Base):
|
|||
|
||||
|
||||
if __name__ == "__main__":
|
||||
if "--debug" in argv:
|
||||
util.debug = True
|
||||
init_map = {
|
||||
"ux": ux.UX(),
|
||||
"markets": Markets(),
|
||||
|
|
Loading…
Reference in New Issue