MCPcopy Create free account
hub / github.com/codeaashu/claude-code / getNormalizedPaths

Function getNormalizedPaths

src/utils/doctorDiagnostic.ts:73–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71}
72
73function getNormalizedPaths(): [invokedPath: string, execPath: string] {
74 let invokedPath = process.argv[1] || ''
75 let execPath = process.execPath || process.argv[0] || ''
76
77 // On Windows, convert backslashes to forward slashes for consistent path matching
78 if (getPlatform() === 'windows') {
79 invokedPath = invokedPath.split(win32.sep).join(posix.sep)
80 execPath = execPath.split(win32.sep).join(posix.sep)
81 }
82
83 return [invokedPath, execPath]
84}
85
86export async function getCurrentInstallationType(): Promise<InstallationType> {
87 if (process.env.NODE_ENV === 'development') {

Callers 1

Calls 1

getPlatformFunction · 0.85

Tested by

no test coverage detected