WallPyPer/main.py

20 lines
383 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()
2022-07-02 15:34:01 +00:00
sched.add_job(start,'interval',minutes=configParsing()['value'])
sched.start()