WallPyPer/main.py

20 lines
364 B
Python
Raw Normal View History

2022-06-18 18:49:00 +00:00
#!/usr/bin/python3
2022-06-29 13:47:58 +00:00
from apscheduler.schedulers.background import BlockingScheduler
2022-06-18 18:49:00 +00:00
from func import *
def start():
try:
kill()
except FileNotFoundError:
2022-06-29 13:47:58 +00:00
setWallPaper()
2022-06-29 13:47:58 +00:00
setWallPaper()
if __name__ == '__main__':
start()
sched = BlockingScheduler()
sched.add_job(start,'interval',minutes=1)
sched.start()