diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2010-09-13 17:36:12 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2010-09-13 17:36:12 +0000 |
commit | ae1d1109068dc5cb67a557ca8405e06c460087e9 (patch) | |
tree | 841f2e3a3be1daae64aece380dbdcc86b91390bf | |
parent | 023f5bdefc86f5277c3462e7e26475a083646ef1 (diff) |
removed text to README.txt and set version
svn path=/trunk/externals/import/; revision=14118
-rw-r--r-- | README.txt | 17 | ||||
-rw-r--r-- | import.c | 14 |
2 files changed, 15 insertions, 16 deletions
@@ -1,8 +1,16 @@ +This object loads libraries and libdirs from within a patch. It is the first +small step towards a patch-specific namespace. It is a reimplementation of a +similar/same idea from Guenter Geiger's [using] object. -[import] allows you to manipulate load library into the patch-local -path from within a Pd patch itself. This is a very simple version -that does not need any modifications to the core of Pd. Therefore, -you should make [import] the first object you create in your patch. +Aiming to provide a simplified Python-style import for Pure Data, this [import] +object loads libraries as part of a patch. It will load anything that Pd +considers a library, including libraries that are defined by Pd loaders like +'libdir'. + +[import] allows you to manipulate load library into the patch-local path from +within a Pd patch itself. This is a very simple version that does not need +any modifications to the core of Pd. Therefore, you should make [import] the +first object you create in your patch. To install, copy the "import" folder into your user Pd folder. You can find out more here: @@ -10,3 +18,4 @@ http://puredata.info/docs/faq/how-do-i-install-externals-and-help-files-with-pd- For more info on the structure of libdirs, see this webpage: http://puredata.org/docs/developer/Libdir + @@ -1,13 +1,3 @@ -/* - * This object loads libraries and libdirs from within a patch. It is the - * first small step towards a patch-specific namespace. Currently, it just - * adds things to the global path. It is a reimplementation of a similar/same - * idea from Guenter Geiger's [using] object. <hans@at.or.at> - * - * This object currently depends on the packages/patches/libdir-0.38-4.patch - * for sys_load_lib_dir(). - */ - #include "m_pd.h" #include <string.h> @@ -41,7 +31,7 @@ struct _canvasenvironment }; -static char *version = "$Revision: 1.2 $"; +static char *version = "1.3"; t_int import_instance_count; @@ -139,7 +129,7 @@ static void *import_new(t_symbol *s, int argc, t_atom *argv) if(import_instance_count == 0) { post("[import] %s",version); - post("\twritten by Hans-Christoph Steiner <hans@at.or.at>"); + post("\twritten by Hans-Christoph Steiner <hans@eds.org>"); post("\tcompiled on "__DATE__" at "__TIME__ " "); post("\tcompiled against Pd version %d.%d.%d", PD_MAJOR_VERSION, PD_MINOR_VERSION, PD_BUGFIX_VERSION); |