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

Function check_paths

scripts/doctor.py:86–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84
85
86def check_paths() -> bool:
87 print("\nRuntime paths")
88 ok = True
89 for relative in ("agents", "skills", "deployments/feishu/webhook-server", "config", "scripts", "paperflow"):
90 path = PROJECT_ROOT / relative
91 exists = path.exists()
92 status(exists, relative)
93 ok = ok and exists
94
95 data_dir = PROJECT_ROOT / "data"
96 models_dir = PROJECT_ROOT / "models"
97 status(data_dir.exists(), "data/", "created by scripts/init_db.py" if not data_dir.exists() else "")
98 status(models_dir.exists(), "models/", "created by scripts/init_db.py" if not models_dir.exists() else "")
99 return ok
100
101
102def check_optional_tools() -> None:

Callers 1

mainFunction · 0.85

Calls 1

statusFunction · 0.85

Tested by

no test coverage detected