MCPcopy Create free account
hub / github.com/Qinbf/groundmap / get_project_root

Function get_project_root

scripts/convert.py:103–105  ·  view source on GitHub ↗

获取项目根目录(scripts/ 的父目录)

()

Source from the content-addressed store, hash-verified

101
102
103def get_project_root() -> Path:
104 """获取项目根目录(scripts/ 的父目录)"""
105 return Path(__file__).resolve().parent.parent
106
107
108def should_convert(source: Path, force: bool) -> bool:

Callers 2

_project_relative_posixFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected