Mercurial > code > home > repos > light9
annotate bin/listsongs @ 717:d8202a0a7fd5
fix up musicpad and wavecurve. ascoltami2 can now use relative paths in the config
Ignore-this: eb95f50f54f14275f1f031ccb7fbb97f
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Wed, 13 Jun 2012 04:27:48 +0000 |
parents | 8a59efa577c1 |
children | 27d2f148b630 |
rev | line source |
---|---|
717
d8202a0a7fd5
fix up musicpad and wavecurve. ascoltami2 can now use relative paths in the config
Drew Perttula <drewp@bigasterisk.com>
parents:
440
diff
changeset
|
1 #!bin/python |
440 | 2 |
3 """for completion, print the available song uris on stdout | |
4 | |
5 in .zshrc: | |
6 | |
7 function _songs { local expl; _description files expl 'songs'; compadd "$expl[@]" - `${LIGHT9_SHOW}/../../bin/listsongs` } | |
8 compdef _songs curvecalc | |
9 """ | |
10 | |
11 import run_local | |
12 from light9 import showconfig | |
13 from light9.namespaces import L9 | |
14 from rdflib import RDF | |
15 graph = showconfig.getGraph() | |
16 | |
17 for song in graph.subjects(RDF.type, L9['Song']): | |
18 print song | |
19 |