fix: ensure IRIS_USE_SUDO is treated as a boolean

This commit is contained in:
Farzin Kazemzadeh
2024-12-25 17:22:15 +03:30
committed by GitHub
parent 62c4e063f8
commit 67f51b2fa4

View File

@ -25,7 +25,7 @@ class IrisSystemPermissionError(IrisSystemError):
class IrisSystemThread(Thread):
_USE_SUDO = os.environ.get("IRIS_USE_SUDO", True)
_USE_SUDO = str(os.environ.get("IRIS_USE_SUDO", True)).lower() == "true"
def __init__(self, action, ioloop, callback):
Thread.__init__(self)