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

Function check_env_file

scripts/doctor.py:66–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64
65
66def check_env_file() -> bool:
67 env_path = PROJECT_ROOT / ".env"
68 example_path = PROJECT_ROOT / ".env.example"
69 status(example_path.exists(), ".env.example")
70 status(env_path.exists(), ".env", "copy .env.example to .env before deployment" if not env_path.exists() else "")
71 if load_dotenv and env_path.exists():
72 load_dotenv(env_path)
73 return env_path.exists()
74
75
76def check_env_group(title: str, names: list[str]) -> bool:

Callers 1

mainFunction · 0.85

Calls 1

statusFunction · 0.85

Tested by

no test coverage detected