WallPyPer/main.py

20 lines
364 B
Python
Executable File

#!/usr/bin/python3
from apscheduler.schedulers.background import BlockingScheduler
from func import *
def start():
try:
kill()
except FileNotFoundError:
setWallPaper()
setWallPaper()
if __name__ == '__main__':
start()
sched = BlockingScheduler()
sched.add_job(start,'interval',minutes=1)
sched.start()