Skip to content

Commit

Permalink
Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne committed Dec 29, 2018
1 parent 249105e commit 3b56b15
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/client/common/configSettings.ts
Expand Up @@ -115,6 +115,7 @@ export class PythonSettings extends EventEmitter implements IPythonSettings {

// tslint:disable-next-line:no-backbone-get-set-outside-model no-non-null-assertion
this.pythonPath = systemVariables.resolveAny(pythonSettings.get<string>('pythonPath'))!;
// If user has defined a custom value, use it else try to get the best interpreter ourselves.
if (this.pythonPath.length === 0 || this.pythonPath === 'python') {
const autoSelectedPythonPath = this.interpreterAutoSeletionService.getAutoSelectedInterpreter(this.workspaceRoot);
this.pythonPath = autoSelectedPythonPath || this.pythonPath;
Expand Down

0 comments on commit 3b56b15

Please sign in to comment.