added debug mode flag as command line argument

This commit is contained in:
weckyy702
2020-12-26 15:00:04 +01:00
parent ad9676255a
commit 1b8741dc91
2 changed files with 8 additions and 2 deletions

8
run.py
View File

@@ -1,4 +1,10 @@
from gui.gui import gui
import sys
do_debug = False
gui(theme='DarkGrey11', debug_mode=True)
if len(sys.argv) > 1:
if sys.argv[1] == "--debug":
do_debug = True
gui(theme='DarkGrey11', debug_mode=do_debug)