MCPcopy Create free account
hub / github.com/917Dhj/DeepPaperNote / env_config_value

Function env_config_value

scripts/common.py:246–258  ·  view source on GitHub ↗
(*names: str, default: str = "")

Source from the content-addressed store, hash-verified

244
245
246def env_config_value(*names: str, default: str = "") -> str:
247 for name in names:
248 value = os.environ.get(name, "").strip()
249 if value:
250 return value
251 disable_shell_fallback = os.environ.get("DEEPPAPERNOTE_DISABLE_SHELL_CONFIG", "").strip().lower()
252 if disable_shell_fallback in {"1", "true", "yes", "on"}:
253 return default
254 for name in names:
255 value = shell_config_value(name)
256 if value:
257 return value
258 return default
259
260
261def title_similarity(a: str, b: str) -> float:

Callers 4

mainFunction · 0.90
semantic_scholar_headersFunction · 0.85
runtime_configFunction · 0.85

Calls 1

shell_config_valueFunction · 0.85