mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
tools: installer: verify that IDF_PATH doesn't contain spaces
This commit is contained in:
parent
aaf3dcbda0
commit
9c5284e7b5
@ -102,6 +102,7 @@ var
|
||||
Page: TInputOptionWizardPage;
|
||||
IDFPath: String;
|
||||
begin
|
||||
Result := False;
|
||||
Page := TInputOptionWizardPage(Sender);
|
||||
Log('OnIDFDownloadPageValidate index=' + IntToStr(Page.SelectedValueIndex));
|
||||
|
||||
@ -110,7 +111,13 @@ begin
|
||||
begin
|
||||
MsgBox('Directory already exists and is not empty:' + #13#10 +
|
||||
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;
|
||||
end;
|
||||
|
||||
|
@ -75,6 +75,13 @@ begin
|
||||
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;
|
||||
end;
|
||||
|
||||
IDFPyPath := IDFPath + '\tools\idf.py';
|
||||
if not FileExists(IDFPyPath) then
|
||||
begin
|
||||
|
Loading…
x
Reference in New Issue
Block a user