On May 21, 2015 12:41 AM, "Thomas Rachel" < nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa...@spamschutz.glglgl.de> wrote: > > Am 20.05.2015 um 18:44 schrieb Robin Becker: > >> not really, it's just normal to keep event routines short; the routine >> which beeps is after detection of the cat's entrance into the house and >> various recognition schemes have pronounced intruder :) > > > You could add a timed "cleanup" routine which .wait()s after a certain time (250 ms or so). > > Or even better, which .poll()s and re-schedules itself if the process still runs.
Or just: Thread(target=p.wait).start() And then you can forget all about it.
-- https://mail.python.org/mailman/listinfo/python-list