Changeset - 41aa6895b3e6
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 17 years ago 2008-06-10 05:15:22
drewp@bigasterisk.com
ascoltami: local pympd import; cmdline ui
1 file changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
bin/ascoltami
Show inline comments
 
@@ -32,13 +32,13 @@ todo:
 

	
 
"""
 

	
 
from __future__ import division,nested_scopes
 

	
 
from optparse import OptionParser
 
import os,math,time
 
import sys, os,math,time
 
from rdflib import URIRef
 
import Tkinter as tk
 
import logging
 
log = logging.getLogger()
 
log.setLevel(logging.DEBUG)
 

	
 
@@ -48,12 +48,13 @@ from twisted.web import xmlrpc, server
 

	
 
import run_local
 
from light9 import networking, showconfig, wavelength
 
from light9.namespaces import L9, MUS
 
from light9.uihelpers import toplevelat
 

	
 
sys.path.append("/home/drewp/projects/pympd_0")
 
from pympd import Mpd
 

	
 
appstyle={'fg':'white','bg':'black'}
 

	
 
def shortSongPath(song, all):
 
    prefixlen = len(os.path.commonprefix(all))
 
@@ -499,12 +500,14 @@ def main():
 
        help='show URI, like http://light9.bigasterisk.com/show/dance2008')
 
    graph = showconfig.getGraph()
 
    (options, songfiles) = parser.parse_args()
 

	
 
    if len(songfiles)<1:
 
        graph = showconfig.getGraph()
 
        if not options.show:
 
            raise ValueError("missing --show http://...")
 
        playList = graph.value(URIRef(options.show), L9['playList'])
 
        songs = list(graph.items(playList))
 
    else:
 
        raise NotImplementedError("don't know how to make rdf song nodes from cmdline song paths")
 

	
 

	
0 comments (0 inline, 0 general)