Фикс бага, при старте системы, когда отсутствует

файл в /tmp
This commit is contained in:
Arthur 2022-06-20 09:22:02 +05:00
parent 1e395280e4
commit 25d1beec98
1 changed files with 8 additions and 2 deletions

10
main.py
View File

@ -2,6 +2,12 @@
from func import *
if __name__ == '__main__':
kill()
def start():
try:
kill()
except FileNotFoundError:
setWallPeper()
setWallPeper()
if __name__ == '__main__':
start()