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

Function _env_bool

deployments/desktop/shared/agents.py:359–363  ·  view source on GitHub ↗
(name: str, default: bool = False)

Source from the content-addressed store, hash-verified

357 }
358
359
360def _env_bool(name: str, default: bool = False) -> bool:
361 """Delegate to the shared parser.
362
363 This used to be an allowlist (`in {"1","true","yes","on"}`) while the agents
364 that act on the same variables used a denylist, so the settings panel could
365 report a feature as disabled while the agents had it enabled -- most visibly
366 for PAPERFLOW_WIKI_INGEST with a blank value.

Callers 5

settingsFunction · 0.70
create_reading_reportsFunction · 0.70
read_arxivFunction · 0.70
read_local_pdfFunction · 0.70

Calls 1

getMethod · 0.80

Tested by

no test coverage detected