[patches:#517] Use all default search-paths for [declare]'s stdlib/stdpath

Status: open
Labels: path
Created: Fri Nov 08, 2013 01:54 PM UTC by IOhannes m zmölnig
Last Updated: Fri Nov 08, 2013 01:54 PM UTC
Owner: Miller Puckette

the [declare] object allows to add search-paths and load libraries,
relative to the "Pd installation".
However, it does not honour the "standard" (immutable) search-paths
(as stored in sys_staticpath).

This patch will make '-stdpath' and '-stdlib' use all "standard" search-paths.

This allows to use [declare -stdlib zexy], which will load the "zexy"
library if it can be found in one of ~/pd-externals, /usr/local/lib/pd-externals
/usr/local/lib/pd/extra/ (in case Pd is installed in /usr/local), but it will not attempt to load "zexy" from a user-defined search path.

When using the "standard" search-paths, any leading "extra/" will be stripped (since '/path/to/pd/extra' is already the search-path), in order to keep compatible with the original implementation that required to use [declare -stdlib extra/zexy] (at least on some platforms)

the patch is against todays git (master branch); apply with "git am ..."


Sent from sourceforge.net because pd-dev@lists.iem.at is subscribed to https://sourceforge.net/p/pure-data/patches/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pure-data/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.