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

Function normalizeRuntimePath

src/utils/bundledMode.ts:27–31  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

25}
26
27function normalizeRuntimePath(path: string): string {
28 return process.platform === 'win32'
29 ? path.split(win32.sep).join(posix.sep)
30 : path
31}
32
33export function isRunningFromBuildDirectory(): boolean {
34 const invokedPath = normalizeRuntimePath(process.argv[1] || '')

Callers 2

isRunningFromSourceBuildFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected