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

Function getNormalizedPaths

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

getPlatformFunction · 0.85

Tested by

no test coverage detected