Changeset - 224d6cd7e1e4
[Not reviewed]
default
0 1 0
Drew Perttula - 12 years ago 2013-06-06 08:21:07
drewp@bigasterisk.com
asco use colored logs
Ignore-this: f37a84fff2c700efad17d07950362f18
1 file changed with 1 insertions and 2 deletions:
0 comments (0 inline, 0 general)
bin/ascoltami2
Show inline comments
 
#!bin/python
 
from run_local import log
 
from twisted.internet import gtk2reactor, reactor
 
import web, thread, gobject, sys, optparse, logging
 
from rdflib import URIRef
 
sys.path.append(".")
 
from light9.ascoltami.player import Player
 
from light9.ascoltami.playlist import Playlist, NoSuchSong
 
@@ -35,14 +36,12 @@ class App:
 
        except NoSuchSong: # we're at the end of the playlist
 
            return
 

	
 
        self.player.setSong(songLocation(graph, nextSong), play=False)
 

	
 
if __name__ == "__main__":
 
    logging.basicConfig()
 
    log = logging.getLogger()
 
    gobject.threads_init() # this is in gtk2reactor too
 

	
 
    parser = optparse.OptionParser()
 
    parser.add_option('--show',
 
        help='show URI, like http://light9.bigasterisk.com/show/dance2008', default=showconfig.showUri())
 
    parser.add_option("-v", "--verbose", action="store_true",
0 comments (0 inline, 0 general)