From 2d0b8055491f7e3243d413d0ac7861b8451a5b1c Mon Sep 17 00:00:00 2001 From: Cory Rivera Date: Tue, 9 Jul 2019 17:58:26 -0700 Subject: [PATCH] Check if python executable exists before querying user package directory. (#6345) --- extensions/notebook/src/jupyter/jupyterServerInstallation.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extensions/notebook/src/jupyter/jupyterServerInstallation.ts b/extensions/notebook/src/jupyter/jupyterServerInstallation.ts index 5def66ee61..862277e199 100644 --- a/extensions/notebook/src/jupyter/jupyterServerInstallation.ts +++ b/extensions/notebook/src/jupyter/jupyterServerInstallation.ts @@ -256,8 +256,7 @@ export class JupyterServerInstallation { } } - let isPythonInstalled = await JupyterServerInstallation.isPythonInstalled(this.apiWrapper); - if (isPythonInstalled) { + if (fs.existsSync(this._pythonExecutable)) { let pythonUserDir = await this.getPythonUserDir(this._pythonExecutable); if (pythonUserDir) { this.pythonEnvVarPath = pythonUserDir + delimiter + this.pythonEnvVarPath;