Skip to content

Commit 1efb30c

Browse files
authored
fix: enhance pyenv path resolution to include virtual environments (#1162)
Fix #658
1 parent b0488b7 commit 1efb30c

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
@@ -271,7 +271,7 @@ export async function resolvePyenvPath(
271271
): Promise<PythonEnvironment | undefined> {
272272
try {
273273
const e = await nativeFinder.resolve(fsPath);
274-
if (e.kind !== NativePythonEnvironmentKind.pyenv) {
274+
if (e.kind !== NativePythonEnvironmentKind.pyenv && e.kind !== NativePythonEnvironmentKind.pyenvVirtualEnv) {
275275
return undefined;
276276
}
277277
const pyenv = await getPyenv(nativeFinder);

0 commit comments

Comments
 (0)