MCPcopy Create free account
hub / github.com/Noumena-Network/code / normalizeEnvPath

Function normalizeEnvPath

src/tools/REPLTool/pyReplHost.ts:1–7  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

1function normalizeEnvPath(value: string | undefined): string | null {
2 if (typeof value !== 'string') {
3 return null
4 }
5 const trimmed = value.trim()
6 return trimmed.length > 0 ? trimmed : null
7}
8
9export function resolvePythonReplHostExecutableFromEnv(
10 env: NodeJS.ProcessEnv = process.env,

Calls

no outgoing calls

Tested by

no test coverage detected