WallPyPer/main.py

25 lines
473 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-03 12:07:01 +00:00
sched.add_job(start,'cron',\
second=configParsing()['second'],\
minute=configParsing()['minute'],\
hour=configParsing()['hour'])
2022-07-02 15:34:01 +00:00
sched.start()