Skip to content

Commit

Permalink
Use conda-meta to get python version (microsoft#23650)
Browse files Browse the repository at this point in the history
potential fix for
microsoft#23649
  • Loading branch information
karthiknadig authored and eleanorjboyd committed Jun 28, 2024
1 parent 7c382db commit 1c49179
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
AnacondaCompanyName,
Conda,
getCondaInterpreterPath,
getPythonVersionFromConda,
isCondaEnvironment,
} from '../../../common/environmentManagers/conda';
import { getPyenvVersionsDir, parsePyenvVersion } from '../../../common/environmentManagers/pyenv';
Expand Down Expand Up @@ -246,7 +247,7 @@ async function resolveCondaEnv(env: BasicEnvInfo): Promise<PythonEnvInfo> {
} else {
executable = await conda.getInterpreterPathForEnvironment({ prefix: envPath });
}
const version = executable ? await getPythonVersionFromPath(executable) : undefined;
const version = executable ? await getPythonVersionFromConda(executable) : undefined;
const info = buildEnvInfo({
executable,
kind: PythonEnvKind.Conda,
Expand Down

0 comments on commit 1c49179

Please sign in to comment.