Files @ 7d59926031ba
Branch filter:

Location: light9/bin/listsongs

drewp@bigasterisk.com
attempted fixes to dmx_usb kernel module for 2.6.38. untested; may crash you
Ignore-this: 7d3167e0c028a60f152114a8addcb18
#!/usr/bin/python

"""for completion, print the available song uris on stdout

in .zshrc:

function _songs { local expl;  _description files expl 'songs';  compadd "$expl[@]" - `${LIGHT9_SHOW}/../../bin/listsongs` }
compdef _songs curvecalc
"""

import run_local
from light9 import showconfig
from light9.namespaces import L9
from rdflib import RDF
graph = showconfig.getGraph()

for song in graph.subjects(RDF.type, L9['Song']):
    print song