Torsten Anders wrote:
As far as I understand, 'x-ozlib://' is a platform independent path which points, e.g., into ~/.oz/1.3.2/cache/x-ozlib. So, if I want to import functors using this platform independent path 'x-ozlib://', then they must be installed for every user in its home directory? Yes?
[...]
'x-oz' points into Mozarts installation directory, but naturally we don't want to store user functors there...

I think the story is a different one.  The environment variable
OZ_SEARCH_LOAD (or OZ_LOAD or OZLOAD) determines
where functors are searched, defaulting to

        'cache='#OZ_DOTOZ#'/cache'#[PATH_SEPARATOR]#
        'cache='#OZ_HOME#'/cache'

(see share/lib/init/Prop.oz).
So unless the user has one of these environment variables set,
any functor is first looked for in ~/.oz/1.3.2/foo,
and if that fails, in $OZHOME/cache/foo.

Just mkdir -p $OZHOME/cache/x-ozlib
and put your functors there.  Of course, this
allows users to override your global installation.

Gruss,
Andreas

_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to