- cycler = Cycler()
- listener = Listener(options.socket_filename, cycler)
- # Initialisation of Cycler delayed so we grab the socket quickly
- cycler.init(options, paths)
- try:
- asyncsched.loop()
- except KeyboardInterrupt:
- print
- cycler.finish()
- finally:
- # Make sure that the socket is cleaned up
- try:
- os.unlink(options.socket_filename)
- except OSError:
- pass