[Lazarus] Package directory at runtime

Mattias Gaertner nc-gaertnma at netcologne.de
Fri May 11 17:02:37 CEST 2012


On Fri, 11 May 2012 16:37:34 +0200
Krzysztof <dibo20 at wp.pl> wrote:

> Hi,
> 
> I have own component editor which inherit from TComponentEditor. I
> have connected it to the control. Everything works fine, my form
> dialog pop up when I double click on control or from context menu. But
> my form dialog have filelistbox and I want that it point to some
> subfolder of this control package. How can I do that? I think this is
> possible because lazarus can do this: when I open some installed
> package and try to open some file, open dialog point to current opened
> package.

The paths are not compiled in.
The IDE knows the path, because it has a history of lpk
files.
See ~/.lazarus/packagefiles.xml

Another possibility is to pass the package path via run / run
parameters / environment / user overrides


Mattias




More information about the Lazarus mailing list