MCPcopy Create free account
hub / github.com/ahaoboy/js-engine-benchmark / getExePath

Function getExePath

scripts/update.ts:308–312  ·  view source on GitHub ↗
(i: string)

Source from the content-addressed store, hash-verified

306 } else if (platform === "linux" || platform === "win32") {
307 const output = execSync(`ldd "${programPath}"`, { encoding: "utf-8" });
308 for (const line of output.split("\n")) {
309 const path = line.split("=>")?.[1]?.trim().split(" (")?.[0];
310 if (!path) {
311 continue;
312 }
313 if (
314 path.startsWith("/lib/") ||
315 path.startsWith("/lib64/") ||

Callers 2

getVersionFunction · 0.85
mainFunction · 0.85

Calls 1

fromMsysPathFunction · 0.85

Tested by

no test coverage detected