Use Existing Install option by default when setting up python on Mac and Linux. (#21093)

This commit is contained in:
Cory Rivera
2022-11-03 11:01:18 -07:00
committed by GitHub
parent ec03b3f4aa
commit 90d0310523
2 changed files with 7 additions and 0 deletions

View File

@@ -13,6 +13,8 @@ import * as utils from '../../common/utils';
import { promises as fs } from 'fs';
import { Deferred } from '../../common/promise';
import { PythonPathLookup } from '../pythonPathLookup';
import { linuxPlatform, macPlatform } from '../../common/constants';
import * as os from 'os';
const localize = nls.loadMessageBundle();
@@ -56,6 +58,10 @@ export class ConfigurePythonWizard {
pythonLocation: JupyterServerInstallation.getPythonPathSetting(),
useExistingPython: JupyterServerInstallation.getExistingPythonSetting()
};
// Default to using existing Python on Mac and Linux, since they have python installed by default
if (os.platform() === macPlatform || os.platform() === linuxPlatform) {
this.model.useExistingPython = true;
}
let pages: Map<number, BasePage> = new Map<number, BasePage>();