diff --git a/src/opencppcoverage/opencppcoverage.ts b/src/opencppcoverage/opencppcoverage.ts index 0da064ee..a944bba5 100644 --- a/src/opencppcoverage/opencppcoverage.ts +++ b/src/opencppcoverage/opencppcoverage.ts @@ -7,7 +7,12 @@ export async function setupOpencppcoverage(version: string | undefined, _setupCp return } await setupChocoPack("opencppcoverage", version) - const binDir = "C:/Program Files/OpenCppCoverage" - addPath(binDir) + const binDir = activateOpencppcoverage() return { binDir } } + +function activateOpencppcoverage() { + const binDir = "C:/Program Files/OpenCppCoverage" + addPath(binDir) + return binDir +}