()
| 54 | } |
| 55 | |
| 56 | function getExecutableResourceRoot(): string | null { |
| 57 | const execPath = process.execPath; |
| 58 | const candidateDirs = [path.dirname(execPath), path.dirname(path.dirname(execPath))]; |
| 59 | for (const candidate of candidateDirs) { |
| 60 | if (hasResourceLayout(candidate)) { |
| 61 | return candidate; |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | return null; |
| 66 | } |
| 67 | |
| 68 | export function getResourceRoot(): string { |
| 69 | if (cachedResourceRoot) { |
no test coverage detected