Source code for xma.utils.env
# **************************************************
# Copyright (c) 2025, Mayank Mishra
# **************************************************
import os
[docs]
def get_boolean_env_variable(name: str, default: bool) -> bool:
return os.getenv(name, str(default)).lower() in ["1", "true"]