mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 04:29:29 +02:00
* Expand ~/ in prefix
git-svn-id: trunk@19960 -
This commit is contained in:
parent
49700e675c
commit
334df8c989
@ -3056,7 +3056,11 @@ end;
|
||||
procedure TCustomDefaults.SetPrefix(const AValue: String);
|
||||
begin
|
||||
if FPrefix=AValue then exit;
|
||||
FPrefix:=IncludeTrailingPathDelimiter(AValue);
|
||||
// Use ExpandFileName to support ~/ expansion
|
||||
if AValue<>'' then
|
||||
FPrefix:=IncludeTrailingPathDelimiter(ExpandFileName(AValue))
|
||||
else
|
||||
FPrefix:='';
|
||||
BaseInstallDir:='';
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user