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

Function _read_env_file

deployments/desktop/shared/agents.py:804–814  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

802
803
804def _read_env_file() -> Dict[str, str]:
805 values: Dict[str, str] = {}
806 if not ENV_PATH.exists():
807 return values
808 for raw_line in ENV_PATH.read_text(encoding="utf-8").splitlines():
809 line = raw_line.strip()
810 if not line or line.startswith("#") or "=" not in line:
811 continue
812 key, value = line.split("=", 1)
813 values[key.strip()] = value.strip().strip('"').strip("'")
814 return values
815
816
817def _env_edit_payload() -> List[Dict[str, str]]:

Callers 3

_env_edit_payloadFunction · 0.85
_env_textFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected