do something every n seconds

Adam Tauno Williams awilliam at whitemice.org
Thu Nov 25 08:37:32 EST 2010


On Thu, 2010-11-25 at 04:38 -0800, Santiago Caracol wrote: 
> how can I do something (e.g. check if new files are in the working
> directory) every n seconds in Python?

Use the Python Advanced Scheduler in your application - it is a great
little module.  Then you've solved every 'scheduler' issue your
application will ever have.
<http://packages.python.org/APScheduler/>
-- 
Adam Tauno Williams <awilliam at whitemice.org> LPIC-1, Novell CLA
<http://www.whitemiceconsulting.com>
OpenGroupware, Cyrus IMAPd, Postfix, OpenLDAP, Samba




More information about the Python-list mailing list