MCPcopy Create free account
hub / github.com/SkyworkAI/DeepResearchAgent / get_project_root

Function get_project_root

src/utils/path_utils.py:4–6  ·  view source on GitHub ↗

Get the project root directory

()

Source from the content-addressed store, hash-verified

2from typing import Union
3
4def get_project_root() -> str:
5 """Get the project root directory"""
6 return os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..'))
7
8def assemble_project_path(path: str) -> str:
9 """Assemble a path relative to the project root directory

Callers 1

assemble_project_pathFunction · 0.85

Calls 2

joinMethod · 0.80
dirnameMethod · 0.80

Tested by

no test coverage detected