Skip to content

Commit dbde19d

Browse files
committed
fix: enhance pyenv path resolution to include virtual environments
1 parent 7551eb5 commit dbde19d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/managers/pyenv/pyenvUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ export async function resolvePyenvPath(
269269
): Promise<PythonEnvironment | undefined> {
270270
try {
271271
const e = await nativeFinder.resolve(fsPath);
272-
if (e.kind !== NativePythonEnvironmentKind.pyenv) {
272+
if (e.kind !== NativePythonEnvironmentKind.pyenv && e.kind !== NativePythonEnvironmentKind.pyenvVirtualEnv) {
273273
return undefined;
274274
}
275275
const pyenv = await getPyenv(nativeFinder);

0 commit comments

Comments
 (0)