codetools: reading fpc unit path: use working directory, not current directory

git-svn-id: trunk@45237 -
This commit is contained in:
mattias 2014-05-30 11:30:54 +00:00
parent de9275761d
commit 20e71e8e42

View File

@ -1545,7 +1545,7 @@ function ParseFPCVerbose(List: TStrings; const WorkDir: string; out
Inc(CurPos, 17);
NewPath:=SetDirSeparators(copy(Line,CurPos,len));
if not FilenameIsAbsolute(NewPath) then
NewPath:=ExpandFileNameUTF8(NewPath);
NewPath:=ExpFile(NewPath);
NewPath:=ChompPathDelim(TrimFilename(NewPath));
{$IFDEF VerboseFPCSrcScan}
DebugLn('Using unit path: "',NewPath,'"');