Skip to content

Commit 66c184f

Browse files
authored
Fix default interpreter path comparison for windows (#769)
Fixes #768
1 parent ca8d03a commit 66c184f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/extension.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { EventNames } from './common/telemetry/constants';
99
import { sendManagerSelectionTelemetry } from './common/telemetry/helpers';
1010
import { sendTelemetryEvent } from './common/telemetry/sender';
1111
import { createDeferred } from './common/utils/deferred';
12+
import { normalizePath } from './common/utils/pathUtils';
1213
import { isWindows } from './common/utils/platformUtils';
1314
import {
1415
activeTerminal,
@@ -620,7 +621,7 @@ async function resolveDefaultInterpreter(
620621
try {
621622
const resolved: NativeEnvInfo = await nativeFinder.resolve(defaultInterpreterPath);
622623
if (resolved && resolved.executable) {
623-
if (resolved.executable === defaultInterpreterPath) {
624+
if (normalizePath(resolved.executable) === normalizePath(defaultInterpreterPath)) {
624625
// no action required, the path is already correct
625626
return;
626627
}

0 commit comments

Comments
 (0)