mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-07 08:40:38 +02:00
implemented custom package initialization
git-svn-id: trunk@3416 -
This commit is contained in:
parent
ba1bca6234
commit
d6d3d3c853
@ -890,10 +890,11 @@ begin
|
||||
if StartPos>l then break;
|
||||
EndPos:=StartPos;
|
||||
while (EndPos<=l) and (SearchPath[EndPos]<>';') do inc(EndPos);
|
||||
CurPath:=TrimFilename(copy(SearchPath,StartPos,EndPos-StartPos));
|
||||
CurPath:=copy(SearchPath,StartPos,EndPos-StartPos);
|
||||
if CurPath<>'' then begin
|
||||
if (BaseDirectory<>'') and (not FilenameIsAbsolute(CurPath)) then
|
||||
CurPath:=BaseDirectory+CurPath;
|
||||
CurPath:=TrimFilename(CurPath);
|
||||
if Result<>'' then
|
||||
CurPath:=';'+CurPath;
|
||||
Result:=Result+CurPath;
|
||||
|
Loading…
Reference in New Issue
Block a user