summaryrefslogtreecommitdiffstats
path: root/swig
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-02-12 17:08:08 +0000
committerDavid Robillard <d@drobilla.net>2011-02-12 17:08:08 +0000
commita4b1d7318f7cfc752ac3a8858006c0d6c796553e (patch)
treef22120f51ae692040561aa5ff0095805ca705a2d /swig
parent7dd771da2752cb3d012575869d905ba1f77697bf (diff)
downloadlilv-a4b1d7318f7cfc752ac3a8858006c0d6c796553e.tar.gz
lilv-a4b1d7318f7cfc752ac3a8858006c0d6c796553e.tar.bz2
lilv-a4b1d7318f7cfc752ac3a8858006c0d6c796553e.zip
Install python bindings.
Automating python pretty-printing for Value. git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2941 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'swig')
-rwxr-xr-xswig/python/lv2_list.py2
-rw-r--r--swig/slv2.i6
2 files changed, 7 insertions, 1 deletions
diff --git a/swig/python/lv2_list.py b/swig/python/lv2_list.py
index ef99cf2..0cd6a1b 100755
--- a/swig/python/lv2_list.py
+++ b/swig/python/lv2_list.py
@@ -8,5 +8,5 @@ world.load_all()
plugins = world.get_all_plugins()
for i in plugins:
- print(i.get_uri().as_uri())
+ print(i.get_uri())
diff --git a/swig/slv2.i b/swig/slv2.i
index 7d0c664..cb5279a 100644
--- a/swig/slv2.i
+++ b/swig/slv2.i
@@ -27,4 +27,10 @@ namespace SLV2 {
return Iterator(self)
%}
};
+%extend Value {
+%pythoncode %{
+ def __str__(self):
+ return slv2_value_get_turtle_token(self.me)
+%}
+};
}