aboutsummaryrefslogtreecommitdiffstats
path: root/lv2includegen
diff options
context:
space:
mode:
Diffstat (limited to 'lv2includegen')
-rwxr-xr-xlv2includegen/lv2includegen.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/lv2includegen/lv2includegen.py b/lv2includegen/lv2includegen.py
index ffca0e8..4065d8b 100755
--- a/lv2includegen/lv2includegen.py
+++ b/lv2includegen/lv2includegen.py
@@ -46,7 +46,7 @@ def lv2_path():
print 'LV2_PATH unset, using default ' + ret
return ret
-def bundles(search_path):
+def __bundles(search_path):
"Return a list of all LV2 bundles found in search_path."
dirs = search_path.split(os.pathsep)
bundles = []
@@ -75,11 +75,11 @@ def __mkdir_p(path):
else:
raise
-def gen(bundles, outdir):
+def build_tree(search_path, outdir):
"""Build a directory tree under outdir containing symlinks to all LV2
- extensions found in bundles, such that the symlink paths correspond to
+ extensions found in search_path, such that the symlink paths correspond to
the extension URIs."""
- for bundle in bundles:
+ for bundle in __bundles(search_path):
# Load manifest into model
manifest = RDF.Model()
parser = RDF.Parser(name="guess")
@@ -115,4 +115,4 @@ if __name__ == "__main__":
outdir = args[0]
print "Building LV2 include tree at", outdir
- gen(bundles(lv2_path()), outdir)
+ build_tree(lv2_path(), outdir)