From ae1d1109068dc5cb67a557ca8405e06c460087e9 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 13 Sep 2010 17:36:12 +0000 Subject: removed text to README.txt and set version svn path=/trunk/externals/import/; revision=14118 --- README.txt | 17 +++++++++++++---- import.c | 14 ++------------ 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/README.txt b/README.txt index 1c1950d..04dd10e 100644 --- a/README.txt +++ b/README.txt @@ -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 + diff --git a/import.c b/import.c index f61c278..43f2227 100644 --- a/import.c +++ b/import.c @@ -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. - * - * This object currently depends on the packages/patches/libdir-0.38-4.patch - * for sys_load_lib_dir(). - */ - #include "m_pd.h" #include @@ -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 "); + post("\twritten by Hans-Christoph Steiner "); post("\tcompiled on "__DATE__" at "__TIME__ " "); post("\tcompiled against Pd version %d.%d.%d", PD_MAJOR_VERSION, PD_MINOR_VERSION, PD_BUGFIX_VERSION); -- cgit v1.2.1