diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2009-03-24 04:11:16 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2009-03-24 04:11:16 +0000 |
commit | 09f46e19e32a8d0d252b6ff3f5abf93f5ec1d276 (patch) | |
tree | 82edb5208d47e8ac0a14c3e9e8fa8092968f3da9 /externals | |
parent | 8ba79fd9033900f5149db8f982c2d7c81bb8e621 (diff) |
use dirbuf returned by canvas_open to set the path so that libdirs can be loaded from the path, outside of the sys_libdir
svn path=/trunk/; revision=10895
Diffstat (limited to 'externals')
-rw-r--r-- | externals/loaders/libdir.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/externals/loaders/libdir.c b/externals/loaders/libdir.c index bcb465b9..4ca710f9 100644 --- a/externals/loaders/libdir.c +++ b/externals/loaders/libdir.c @@ -64,15 +64,8 @@ static int libdir_loader(t_canvas *canvas, char *classname) return (0); } close(fd); - /* add Pd's base path to the path to make it an absolute path. This - * needs to be an absolute path because relative paths in the ce_path - * are interpreted as relative to the parent path's current - * directory. hans@eds.org */ - sys_unbashfilename(sys_libdir->s_name, pathbuf); - strcat(pathbuf, "/extra/"); - strncat(pathbuf, classname, FILENAME_MAX - strlen(pathbuf)); canvasenvironment->ce_path = namelist_append(canvasenvironment->ce_path, - pathbuf, 0); + dirbuf, 0); post("libdir_loader: added '%s' to the canvas-local objectclass path", classname); } else @@ -110,7 +103,6 @@ void libdir_setup(void) post("\tor a version that has sys_register_loader()"); #endif post("libdir loader %s",version); - post("\twritten by Hans-Christoph Steiner <hans@at.or.at>"); post("\tcompiled on "__DATE__" at "__TIME__ " "); post("\tcompiled against Pd version %d.%d.%d.%s", PD_MAJOR_VERSION, PD_MINOR_VERSION, PD_BUGFIX_VERSION, PD_TEST_VERSION); |