mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-01 19:54:32 +02:00
tools: installer: verify that IDF_PATH doesn't contain spaces
This commit is contained in:
@@ -102,6 +102,7 @@ var
|
|||||||
Page: TInputOptionWizardPage;
|
Page: TInputOptionWizardPage;
|
||||||
IDFPath: String;
|
IDFPath: String;
|
||||||
begin
|
begin
|
||||||
|
Result := False;
|
||||||
Page := TInputOptionWizardPage(Sender);
|
Page := TInputOptionWizardPage(Sender);
|
||||||
Log('OnIDFDownloadPageValidate index=' + IntToStr(Page.SelectedValueIndex));
|
Log('OnIDFDownloadPageValidate index=' + IntToStr(Page.SelectedValueIndex));
|
||||||
|
|
||||||
@@ -110,7 +111,13 @@ begin
|
|||||||
begin
|
begin
|
||||||
MsgBox('Directory already exists and is not empty:' + #13#10 +
|
MsgBox('Directory already exists and is not empty:' + #13#10 +
|
||||||
IDFPath + #13#10 + 'Please choose a different directory.', mbError, MB_OK);
|
IDFPath + #13#10 + 'Please choose a different directory.', mbError, MB_OK);
|
||||||
Result := False;
|
exit;
|
||||||
|
end;
|
||||||
|
|
||||||
|
if Pos(' ', IDFPath) <> 0 then
|
||||||
|
begin
|
||||||
|
MsgBox('ESP-IDF build system does not support spaces in paths.' + #13#10
|
||||||
|
'Please choose a different directory.', mbError, MB_OK);
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@@ -75,6 +75,13 @@ begin
|
|||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
if Pos(' ', IDFPath) <> 0 then
|
||||||
|
begin
|
||||||
|
MsgBox('ESP-IDF build system does not support spaces in paths.' + #13#10
|
||||||
|
'Please choose a different directory.', mbError, MB_OK);
|
||||||
|
exit;
|
||||||
|
end;
|
||||||
|
|
||||||
IDFPyPath := IDFPath + '\tools\idf.py';
|
IDFPyPath := IDFPath + '\tools\idf.py';
|
||||||
if not FileExists(IDFPyPath) then
|
if not FileExists(IDFPyPath) then
|
||||||
begin
|
begin
|
||||||
|
Reference in New Issue
Block a user