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