Skip to content

Commit b0927e0

Browse files
jaboothDonJayamanne
authored andcommitted
Clean up automatic interpreter setting
1 parent e262666 commit b0927e0

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/client/providers/setInterpreterProvider.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ import * as child_process from 'child_process';
33
import * as path from "path";
44
import * as fs from "fs";
55
import * as vscode from "vscode";
6-
import * as settings from "../common/configSettings";
7-
import { Commands } from '../common/constants';
8-
import * as utils from "../common/utils";
6+
import * as settings from "./../common/configSettings";
7+
import * as utils from "./../common/utils";
98
let ncp = require("copy-paste");
109

1110
// where to find the Python binary within a conda env
@@ -73,7 +72,7 @@ function replaceContentsOfFile(doc: vscode.TextDocument, newContent: string) {
7372
}
7473

7574
export function activateSetInterpreterProvider() {
76-
vscode.commands.registerCommand(Commands.Set_Interpreter, setInterpreter);
75+
vscode.commands.registerCommand("python.setInterpreter", setInterpreter);
7776
}
7877

7978
function lookForInterpretersInPath(pathToCheck: string): Promise<string[]> {
@@ -283,4 +282,4 @@ function setInterpreter() {
283282
return
284283
}
285284
presentQuickPickOfSuggestedPythonPaths();
286-
}
285+
}

0 commit comments

Comments
 (0)