* Config file in home dir has . prepended on unix

git-svn-id: trunk@37828 -
This commit is contained in:
michael 2017-12-27 09:29:28 +00:00
parent 5cbdf4d30c
commit 44b2419d5e

View File

@ -2054,7 +2054,10 @@ begin
// first try HOME directory
aFilename:=ChompPathDelim(GetEnvironmentVariableUTF8('HOME'));
if aFilename<>'' then
if TryConfig(aFilename+PathDelim+DefaultConfigFile) then exit;
begin
aFilename:=aFilename+PathDelim{$IFDEF UNIX}+'.'{$ENDIF}+DefaultConfigFile;
if TryConfig(aFileName) then exit;
end;
// then try compiler directory
if (CompilerExe<>'') then begin