diff --git a/src/doxygen/doxygen.ts b/src/doxygen/doxygen.ts index 17edaf10..8cce96fe 100644 --- a/src/doxygen/doxygen.ts +++ b/src/doxygen/doxygen.ts @@ -33,9 +33,7 @@ export async function setupDoxygen(version: string | undefined, _setupCppDir: st * at setupDoxygen (src/doxygen/doxygen.ts:11:27) * at Object. (src/doxygen/__tests__/doxygen.test.ts:8:25) */ - addPath("C:/Program Files/Graphviz/bin") - const binDir = "C:/Program Files/doxygen/bin" - addPath(binDir) + const binDir = activateWinDoxygen() return { binDir } } case "darwin": { @@ -51,3 +49,10 @@ export async function setupDoxygen(version: string | undefined, _setupCppDir: st } } } + +function activateWinDoxygen() { + addPath("C:/Program Files/Graphviz/bin") + const binDir = "C:/Program Files/doxygen/bin" + addPath(binDir) + return binDir +}