Skip to content

Commit c205bec

Browse files
Alxiicefabiencastan
andcommitted
[debug] Use strtobool to get the env variable value
Co-authored-by: Fabien Castan <fabcastan@gmail.com>
1 parent dcd6811 commit c205bec

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

meshroom/core/taskManager.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
from threading import Thread
55
from PySide6.QtCore import QThread, QEventLoop, QTimer
66
from enum import Enum
7+
from meshroom.common import strtobool
78

89
DEBUGGING = False
9-
if os.environ.get("DEBUGGING", 0) == "1":
10+
if strtobool(os.environ.get("DEBUGGING", "0")):
1011
DEBUGGING = True
1112
import debugpy
1213

0 commit comments

Comments
 (0)