Revert using current dir as a base dir for LazarusDirectory. Issue #39671.

This commit is contained in:
Juha 2022-03-13 11:00:23 +02:00
parent d2701ed5d1
commit 3a6e1341f5

View File

@ -3490,10 +3490,9 @@ begin
eopLazarusDirectory: eopLazarusDirectory:
// lazarus directory // lazarus directory
begin begin
ParsedValue:=TrimAndExpandDirectory(ParsedValue,GetPrimaryConfigPath);
if ParsedValue='' then if ParsedValue='' then
ParsedValue:=AppendPathDelim(GetCurrentDirUTF8) ParsedValue:=TrimFilename(AppendPathDelim(GetCurrentDirUTF8));
else
ParsedValue:=TrimAndExpandDirectory(ParsedValue,GetCurrentDirUTF8);
end; end;
eopFPCSourceDirectory,eopTestBuildDirectory: eopFPCSourceDirectory,eopTestBuildDirectory:
// directory // directory