mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-26 17:23:15 -05:00
Use Existing Install option by default when setting up python on Mac and Linux. (#21093)
This commit is contained in:
@@ -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>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user