Reputation: 155
I have been trying to make a personal assistant. I made a alarm clock a days ago, but its working like its testing if the date is the same like the real time. And my problem is that i would also use the main script while the alarm clock is check. But is there a way to do that? Like a module system or something else?
Upvotes: 1
Views: 50
Reputation: 3907
Two solutions, Threads
https://en.wikibooks.org/wiki/Python_Programming/Threading
or async like gevent
http://sdiehl.github.io/gevent-tutorial/
Upvotes: 1