in workflow-postprocess/workflow1/src/config.py [0:0]
def __env(key: str, required=True):
val = os.getenv(key)
if not val and required:
raise KeyError(f"Environment variable '{key}' must be set.")
return val