1

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?

Fredrikj31
  • 135
  • 1
  • 1
  • 12

1 Answers1

1

Two solutions, Threads

https://en.wikibooks.org/wiki/Python_Programming/Threading

or async like gevent

http://sdiehl.github.io/gevent-tutorial/

eatmeimadanish
  • 3,809
  • 1
  • 14
  • 20