From: Henry Bilby Date: Thu, 21 May 2009 01:07:10 +0000 (-0400) Subject: Updating main function. X-Git-Url: http://git.maemo.org/git/?p=zukebox;a=commitdiff_plain;h=b326025b903a8ad0cc1bc16854857836495b0d8e Updating main function. --- diff --git a/control_point/zukebox_control_point.py b/control_point/zukebox_control_point.py index 9e38e45..c45a6a9 100644 --- a/control_point/zukebox_control_point.py +++ b/control_point/zukebox_control_point.py @@ -14,6 +14,7 @@ zukebox_type = 'urn:schemas-upnp-org:device:ZukeBoxServer:1' def on_new_device(dev): print 'Got new device: ', dev.udn + print "Type 'list' to see the whole list" if not dev: return @@ -38,14 +39,14 @@ def main(): """ c = create_control_point() c.start() - #run_async_function(_handle_cmds, (c, )) + run_async_function(_handle_cmds, (c, )) reactor.add_after_stop_func(c.stop) reactor.main() def _handle_cmds(c): while True: try: - input= raw_input('(type help)command: ') + input= raw_input('(in doubt use help)command: ') except KeyboardInterrupt, EOFError: c.stop() break