Skip to content

Commit 5cd17de

Browse files
turn on debugging if running from source
If it's built as a exe, it will turn debugging off.
1 parent 43a01aa commit 5cd17de

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main.py

+3
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ def createLogger(type = 'file', filename = 'logs/log.log', debug = False):
6868

6969
debug = False
7070

71+
if sys.argv[0].endswith('.py'):
72+
debug = True
73+
7174
args = sys.argv[1::]
7275
if len(args) > 0:
7376
if args[0] in ['-d', '--debug']:

0 commit comments

Comments
 (0)