summaryrefslogtreecommitdiffstats
path: root/swig/python
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-02-12 09:11:17 +0000
committerDavid Robillard <d@drobilla.net>2011-02-12 09:11:17 +0000
commit7dd771da2752cb3d012575869d905ba1f77697bf (patch)
tree825a750f4fb153fcf37303f8c79a73e7ce0c8e02 /swig/python
parent79f72150ed0b552962fbe4377208f2dea4db2cf1 (diff)
downloadlilv-7dd771da2752cb3d012575869d905ba1f77697bf.tar.gz
lilv-7dd771da2752cb3d012575869d905ba1f77697bf.tar.bz2
lilv-7dd771da2752cb3d012575869d905ba1f77697bf.zip
Add C++ and Python bindings.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2940 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'swig/python')
-rwxr-xr-xswig/python/lv2_list.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/swig/python/lv2_list.py b/swig/python/lv2_list.py
index 685b62b..ef99cf2 100755
--- a/swig/python/lv2_list.py
+++ b/swig/python/lv2_list.py
@@ -1,8 +1,12 @@
#!/usr/bin/env python
-import slv2;
-w = slv2.World()
-w.load_all()
+import slv2
+
+world = slv2.World()
+world.load_all()
+
+plugins = world.get_all_plugins()
+
+for i in plugins:
+ print(i.get_uri().as_uri())
-for p in w.get_all_plugins():
- print p.uri(), "-", p.name()