MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _env_flag

Function _env_flag

agents/reading-agent/main.py:172–176  ·  view source on GitHub ↗
(name: str, default: bool = False)

Source from the content-addressed store, hash-verified

170}
171"""
172
173
174def _env_flag(name: str, default: bool = False) -> bool:
175 raw = os.environ.get(name)
176 if raw is None:
177 return default
178 return raw.strip().lower() not in {"0", "false", "off", "no", ""}
179

Callers 5

_resolve_configured_dirFunction · 0.70
_obsidian_month_dirFunction · 0.70
_mineru_enabledFunction · 0.70

Calls 1

getMethod · 0.80

Tested by

no test coverage detected