cherrypy.tree.mount(dummy_class_instance, '/', config=custom_config_dict)
cherrypy.engine.start()
cherrypy.engine.block()
But today, I also play with gstreamer (this webapp command a music player) which requires a call to
gloop = GLib.MainLoop()
gloop.run()
Which I place just after the cherrypy engine start() and before the block(). It works perfectly fine until the auto reload kicks in and... get stuck mid way by the GLib.MainLoop. Is it possible to attach something to this auto_reload procedure to trigger a MainLoop.quit() somehow ?
Another alternative would be to put this GLib stuff in a completely separate process but I would like to avoid this if possible.
Thanks :)