[Lazarus] How to tell lazarus the location of a used package?

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Nov 24 11:06:15 CET 2010


On Wed, 24 Nov 2010 09:30:01 +0100
Bo Berglund <bo.berglund at gmail.com> wrote:

> On Tue, 23 Nov 2010 23:57:11 +0100, Mattias Gaertner
> <nc-gaertnma at netcologne.de> wrote:
> 
> >On Tue, 23 Nov 2010 20:03:26 +0100
> >Bo Berglund <bo.berglund at gmail.com> wrote:
> >> Why is one Lazarus using a relative path and the other an absolute
> >> path?
> >
> >0.9.29 uses relative paths for packages in the Lazarus source
> >directory. When a new Lazarus is installed under a different path
> >(e.g. the path contains the Lazarus version) all new packages are used
> >automatically. 
> 
> Makes sense to use relative paths to make the environment portable.
> But if Lazarus only uses relative paths for packages below the lazarus
> top folder and not for other packages, it might impact portability and
> co-operation unless all involved developers put the packages below
> lazarus.

Your config files are not ported. They belong to your machine.


> Is it possible to use an environment variable as the top locator? Like
> for example:
> {$PROJECTPACKAGES}\Mypackage\mypackagelaz.lpk

That would only make sense if PROJECTPACKAGES would change from time
to time.

 
> And on Windows the use of locations below the install dir implies that
> lazarus itself is installed far away from the protected folder trees
> (like "Program Files" for instance).
> Which is what I always do anyway. :-D


Mattias
 




More information about the Lazarus mailing list