Mercurial > code > home > repos > light9
changeset 429:41aa6895b3e6
ascoltami: local pympd import; cmdline ui
author | drewp@bigasterisk.com |
---|---|
date | Tue, 10 Jun 2008 05:15:22 +0000 |
parents | 5aec70b85d92 |
children | 670f3fd83267 |
files | bin/ascoltami |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/ascoltami Tue Jun 10 05:01:54 2008 +0000 +++ b/bin/ascoltami Tue Jun 10 05:15:22 2008 +0000 @@ -35,7 +35,7 @@ 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 @@ -51,6 +51,7 @@ 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'} @@ -502,6 +503,8 @@ 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: