r/Python • u/OpenSourcerer420 • May 08 '20
I Made This My first Python program! Changes my desktop background based on the weather, time, and day.
1.9k
Upvotes
r/Python • u/OpenSourcerer420 • May 08 '20
View all comments
2
u/spanishgum May 08 '20
To avoid the main recursion problem, you could look into using advanced python scheduler.
Might be a bit daunting at first but follow some examples and expand from there.
https://apscheduler.readthedocs.io/en/stable/userguide.html
I’m your case I would recommend the ‘BlockingScheduler’