Update wrapper.py

This commit is contained in:
Lukas Baumann 2020-12-03 03:08:20 +01:00 committed by GitHub
parent b0fcdd8623
commit aa6a0f6e22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,9 +30,9 @@ while True:
try: try:
integrity_check() integrity_check()
if int(open(CONFIG, "r").read().split()[3]): if int(open(CONFIG, "r").read().split()[3]):
call(["backend.py"], shell=True) call(["python3", "backend.py"], shell=True)
else: else:
Popen(["backend.py"], shell=True) Popen(["python3", "backend.py"], shell=True)
sleep(float(open(CONFIG, "r").read().split()[0])) sleep(float(open(CONFIG, "r").read().split()[0]))
except Exception as E: except Exception as E:
print("Error: " + type(E).__name__) print("Error: " + type(E).__name__)