mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Check if python executable exists before querying user package directory. (#6345)
This commit is contained in:
committed by
Charles Gagnon
parent
d2e758c0d7
commit
78a42e1d11
@@ -256,8 +256,7 @@ export class JupyterServerInstallation {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let isPythonInstalled = await JupyterServerInstallation.isPythonInstalled(this.apiWrapper);
|
if (fs.existsSync(this._pythonExecutable)) {
|
||||||
if (isPythonInstalled) {
|
|
||||||
let pythonUserDir = await this.getPythonUserDir(this._pythonExecutable);
|
let pythonUserDir = await this.getPythonUserDir(this._pythonExecutable);
|
||||||
if (pythonUserDir) {
|
if (pythonUserDir) {
|
||||||
this.pythonEnvVarPath = pythonUserDir + delimiter + this.pythonEnvVarPath;
|
this.pythonEnvVarPath = pythonUserDir + delimiter + this.pythonEnvVarPath;
|
||||||
|
|||||||
Reference in New Issue
Block a user