mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Check if python executable exists before querying user package directory. (#6345)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user