MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / getExecutableResourceRoot

Function getExecutableResourceRoot

src/core/resource-root.ts:56–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54}
55
56function getExecutableResourceRoot(): string | null {
57 const execPath = process.execPath;
58 const candidateDirs = [path.dirname(execPath), path.dirname(path.dirname(execPath))];
59 for (const candidate of candidateDirs) {
60 if (hasResourceLayout(candidate)) {
61 return candidate;
62 }
63 }
64
65 return null;
66}
67
68export function getResourceRoot(): string {
69 if (cachedResourceRoot) {

Callers 1

getResourceRootFunction · 0.85

Calls 1

hasResourceLayoutFunction · 0.85

Tested by

no test coverage detected