Skip adding python user package directory to PATH on SAW devices. (#11849)

This commit is contained in:
Cory Rivera
2020-08-18 17:14:19 -07:00
committed by GitHub
parent 62d60f62f3
commit 0f063d3a2e

View File

@@ -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;