Skip to content

Commit 3576225

Browse files
committed
Use conda-meta to get python version
1 parent 6138ff8 commit 3576225

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/client/pythonEnvironments/base/locators/composite/resolverUtils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {
1919
AnacondaCompanyName,
2020
Conda,
2121
getCondaInterpreterPath,
22+
getPythonVersionFromConda,
2223
isCondaEnvironment,
2324
} from '../../../common/environmentManagers/conda';
2425
import { getPyenvVersionsDir, parsePyenvVersion } from '../../../common/environmentManagers/pyenv';
@@ -246,7 +247,7 @@ async function resolveCondaEnv(env: BasicEnvInfo): Promise<PythonEnvInfo> {
246247
} else {
247248
executable = await conda.getInterpreterPathForEnvironment({ prefix: envPath });
248249
}
249-
const version = executable ? await getPythonVersionFromPath(executable) : undefined;
250+
const version = executable ? await getPythonVersionFromConda(executable) : undefined;
250251
const info = buildEnvInfo({
251252
executable,
252253
kind: PythonEnvKind.Conda,

0 commit comments

Comments
 (0)