mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-16 10:30:18 +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);
|
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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user