MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / enhancePath

Function enhancePath

projects/electron/src/modules/code/binaries.ts:154–163  ·  view source on GitHub ↗

* Prepend the managed bin directory to the system PATH.

()

Source from the content-addressed store, hash-verified

152 * Prepend the managed bin directory to the system PATH.
153 */
154function enhancePath(): void {
155 const binDir = getBinDir()
156 const currentPath = process.env.PATH || ""
157
158 if (!currentPath.includes(binDir)) {
159 const separator = process.platform === "win32" ? ";" : ":"
160 process.env.PATH = `${binDir}${separator}${currentPath}`
161 logger.info("[Binaries] Prepended to PATH:", binDir)
162 }
163}
164
165
166// ============================================================================

Callers 2

ensureRuntimeBinaryFunction · 0.85
loadFunction · 0.85

Calls 1

getBinDirFunction · 0.85

Tested by

no test coverage detected