Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 86c9d59

Browse filesBrowse files
committed
Use conda-meta to get python version
1 parent bedd1a6 commit 86c9d59
Copy full SHA for 86c9d59

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/client/pythonEnvironments/base/locators/composite/resolverUtils.ts
+2-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.