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

Function _env_list

deployments/desktop/shared/agents.py:890–897  ·  view source on GitHub ↗
(name: str, default: Optional[List[str]] = None)

Source from the content-addressed store, hash-verified

888 for raw_line in raw_text.splitlines():
889 line = raw_line.strip()
890 if not line or line.startswith("#") or "=" not in line:
891 continue
892 key, value = line.split("=", 1)
893 values[key.strip()] = value.strip().strip('"').strip("'")
894
895 with _ENV_FILE_CACHE_LOCK:
896 _ENV_FILE_CACHE = (signature[0], signature[1], dict(values))
897 # Copy on the way out so callers cannot mutate the cached mapping.
898 return dict(values)
899
900

Callers 1

settingsFunction · 0.70

Calls 2

_env_textFunction · 0.85
_load_jsonFunction · 0.70

Tested by

no test coverage detected