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

Bo Berglund bo.berglund at gmail.com
Wed Nov 24 09:30:01 CET 2010

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

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
Is it possible to use an environment variable as the top locator? Like
for example:

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


Bo Berglund
Developer in Sweden

More information about the Lazarus mailing list