Files
@ b05423b17c46
Branch filter:
Location: light9/bin/ascoltami2 - annotation
b05423b17c46
1.1 KiB
text/plain
remove curvecalc's old intro/post cheats, replace with slightly better ones
Ignore-this: abdfdba8eedd6e050f88d3f4b0d82efc
Ignore-this: abdfdba8eedd6e050f88d3f4b0d82efc
1156d3531327 1156d3531327 1156d3531327 1156d3531327 1156d3531327 1156d3531327 1156d3531327 1156d3531327 519adb4e539f 1156d3531327 1156d3531327 1156d3531327 1156d3531327 1156d3531327 1156d3531327 1156d3531327 1156d3531327 1156d3531327 1156d3531327 1156d3531327 1156d3531327 1156d3531327 1156d3531327 1156d3531327 519adb4e539f 1156d3531327 1156d3531327 1156d3531327 1156d3531327 1156d3531327 1156d3531327 1156d3531327 1156d3531327 1156d3531327 1156d3531327 | #!/usr/bin/python
import web, thread, gobject, sys, optparse, logging
from rdflib import URIRef
sys.path.append(".")
from light9.ascoltami.player import Player
from light9.ascoltami.webapp import makeApp
from light9 import networking, showconfig
logging.basicConfig()
log = logging.getLogger()
gobject.threads_init()
parser = optparse.OptionParser()
parser.add_option('--show',
help='show URI, like http://light9.bigasterisk.com/show/dance2008')
parser.add_option("-v", "--verbose", action="store_true",
help="logging.DEBUG")
(options, args) = parser.parse_args()
log.setLevel(logging.DEBUG if options.verbose else logging.INFO)
if not options.show:
raise ValueError("missing --show http://...")
graph = showconfig.getGraph()
player = Player()
# the cherrypy server would wedge when vidref pounds on it; this
# one seems to run
thread.start_new(web.httpserver.runbasic,
(makeApp(player, graph, URIRef(options.show)).wsgifunc(),
('0.0.0.0', networking.musicPort())))
mainloop = gobject.MainLoop()
mainloop.run()
|