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

Function assemble_project_path

src/utils/path_utils.py:8–20  ·  view source on GitHub ↗

Assemble a path relative to the project root directory Args: path: Path string (relative or absolute) Returns: str: Absolute path string

(path: str)

Source from the content-addressed store, hash-verified

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
10
11 Args:
12 path: Path string (relative or absolute)
13
14 Returns:
15 str: Absolute path string
16 """
17 if os.path.isabs(path):
18 return os.path.abspath(path)
19 else:
20 return os.path.abspath(os.path.join(get_project_root(), path))

Callers 15

__init__Method · 0.90
initializeMethod · 0.90
__init__Method · 0.90
initializeMethod · 0.90
_build_paramsMethod · 0.90
__init__Method · 0.90
initializeMethod · 0.90

Calls 2

get_project_rootFunction · 0.85
joinMethod · 0.80

Tested by 3

saveModuleMethod · 0.72
test_chatFunction · 0.72
test_file_systemFunction · 0.72