* Expand ~/ in prefix

git-svn-id: trunk@19960 -
This commit is contained in:
joost 2012-01-04 10:11:16 +00:00
parent 49700e675c
commit 334df8c989

View File

@ -3056,7 +3056,11 @@ end;
procedure TCustomDefaults.SetPrefix(const AValue: String); procedure TCustomDefaults.SetPrefix(const AValue: String);
begin begin
if FPrefix=AValue then exit; if FPrefix=AValue then exit;
FPrefix:=IncludeTrailingPathDelimiter(AValue); // Use ExpandFileName to support ~/ expansion
if AValue<>'' then
FPrefix:=IncludeTrailingPathDelimiter(ExpandFileName(AValue))
else
FPrefix:='';
BaseInstallDir:=''; BaseInstallDir:='';
end; end;