From 0f063d3a2e2fbbdf8aec93ad29831a2ccd8c4e79 Mon Sep 17 00:00:00 2001 From: Cory Rivera Date: Tue, 18 Aug 2020 17:14:19 -0700 Subject: [PATCH] Skip adding python user package directory to PATH on SAW devices. (#11849) --- extensions/notebook/src/jupyter/jupyterServerInstallation.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/notebook/src/jupyter/jupyterServerInstallation.ts b/extensions/notebook/src/jupyter/jupyterServerInstallation.ts index d48509f014..67b78c2e36 100644 --- a/extensions/notebook/src/jupyter/jupyterServerInstallation.ts +++ b/extensions/notebook/src/jupyter/jupyterServerInstallation.ts @@ -321,7 +321,8 @@ export class JupyterServerInstallation implements IJupyterServerInstallation { } } - if (await utils.exists(this._pythonExecutable)) { + // Skip adding user package directory on SAWs, since packages will already be included with ADS + if (!this._runningOnSAW && await utils.exists(this._pythonExecutable)) { let pythonUserDir = await this.getPythonUserDir(this._pythonExecutable); if (pythonUserDir) { this.pythonEnvVarPath = pythonUserDir + delimiter + this.pythonEnvVarPath;