MCPcopy Create free account
hub / github.com/Tencent/libpag / GetRootPath

Function GetRootPath

test/src/utils/ProjectPath.cpp:23–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22namespace pag {
23static std::string GetRootPath() {
24 std::filesystem::path filePath = __FILE__;
25 auto dir = filePath.parent_path().string();
26 return std::filesystem::path(dir + "/../../..").lexically_normal();
27}
28
29std::string ProjectPath::Absolute(const std::string& relativePath) {
30 std::filesystem::path path = relativePath;

Callers 1

AbsoluteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected