mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-27 21:15:37 +00:00
tools: add system check to verify Python versions and Windows Defender status
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ Copyright 2019 Espressif Systems (Shanghai) PTE LTD
|
||||
{ Copyright 2019-2020 Espressif Systems (Shanghai) CO LTD
|
||||
SPDX-License-Identifier: Apache-2.0 }
|
||||
|
||||
{ ------------------------------ Page to select Python interpreter ------------------------------ }
|
||||
@@ -50,8 +50,6 @@ begin
|
||||
if Page.CheckListBox.Items.Count > 0 then
|
||||
exit;
|
||||
|
||||
FindInstalledPythonVersions();
|
||||
|
||||
VersionToInstall := '{#PythonVersion}';
|
||||
OfferToInstall := True;
|
||||
FirstEnabledIndex := -1;
|
||||
@@ -119,11 +117,11 @@ end;
|
||||
|
||||
procedure PythonExecutablePathUpdateAfterInstall();
|
||||
var
|
||||
Version, DisplayName, ExecutablePath: String;
|
||||
Version, DisplayName, ExecutablePath, BaseDir: String;
|
||||
begin
|
||||
if not GetPythonVersionInfoFromKey(
|
||||
HKEY_CURRENT_USER, 'Software\Python', 'PythonCore', '{#PythonVersion}',
|
||||
Version, DisplayName, ExecutablePath) then
|
||||
Version, DisplayName, ExecutablePath, BaseDir) then
|
||||
begin
|
||||
Log('Failed to find ExecutablePath for the installed copy of Python');
|
||||
exit;
|
||||
|
||||
Reference in New Issue
Block a user