mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 22:20:25 +02:00
IDE: open lpk: always resolve symlinks in lpk filename, because package directory is used as working directory for fpc
git-svn-id: trunk@45249 -
This commit is contained in:
parent
62828003be
commit
67dd475567
@ -48,7 +48,7 @@ uses
|
||||
contnrs, StringHashList, Translations, LResources,
|
||||
// codetools
|
||||
CodeToolsConfig, CodeToolManager, CodeCache, CodeToolsStructs, BasicCodeTools,
|
||||
FileProcs, Laz2_XMLCfg, lazutf8classes, LazFileUtils,
|
||||
FileProcs, Laz2_XMLCfg, lazutf8classes, LazFileUtils, LazFileCache,
|
||||
// IDE Interface
|
||||
SrcEditorIntf, NewItemIntf, ProjectIntf, PackageIntf, CompOptsIntf,
|
||||
MenuIntf, IDEWindowIntf, PropEdits, MacroIntf, LazIDEIntf,
|
||||
@ -2245,7 +2245,7 @@ begin
|
||||
if not GlobalMacroList.SubstituteStr(AFilename) then exit(mrCancel);
|
||||
end;
|
||||
|
||||
AFilename:=CleanAndExpandFilename(AFilename);
|
||||
AFilename:=GetPhysicalFilenameCached(CleanAndExpandFilename(AFilename),false);
|
||||
|
||||
// check file extension
|
||||
if (CompareFileExt(AFilename,'.lpk',false)<>0)
|
||||
|
Loading…
Reference in New Issue
Block a user