Skip to content

Commit 450b2c1

Browse files
authored
fix(vscode): look in right place for scripts on windows (#4435)
1 parent 8208b00 commit 450b2c1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • vscode/extension/src/utilities/common

vscode/extension/src/utilities/common/python.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { commands, Disposable, Event, EventEmitter, Uri } from 'vscode'
55
import { traceError, traceLog } from './log'
66
import { PythonExtension, ResolvedEnvironment } from '@vscode/python-extension'
77
import path from 'path'
8+
import { IS_WINDOWS } from '../isWindows'
89

910
export interface IInterpreterDetails {
1011
path?: string[]
@@ -83,7 +84,7 @@ export async function getInterpreterDetails(
8384
path: [environment?.executable.uri.fsPath],
8485
resource,
8586
isVirtualEnvironment: isVirtualEnv,
86-
binPath: binPath ? path.join(binPath, 'bin') : undefined,
87+
binPath: binPath ? path.join(binPath, IS_WINDOWS ? 'Scripts' : 'bin') : undefined,
8788
}
8889
}
8990
return { path: undefined, resource }

0 commit comments

Comments
 (0)