[PD-dev] library finding it's own path?
Martin Peach
martin.peach at sympatico.ca
Thu Apr 23 15:08:21 CEST 2009
zmoelnig at iem.at wrote:
> hi all.
>
> does anybody know of a nice way for an external object/library to find
> out it's own path (at the time of loading the external)?
>
> my current solution involves way too many Pd-internals (like accessing
> the c_externdir member of the t_class structure)
>
Have a look at the source for [mrpeach/which] in svn. I took some code
from Pd internals and it calls some more, but maybe not _way_ too much.
What's missing from it is a way to know if a name refers to an internal.
Martin
More information about the Pd-dev
mailing list