use always actual safemode bins

This commit is contained in:
Jason2866 2022-04-26 18:07:37 +02:00 committed by GitHub
parent fe5f17c107
commit dfa104383e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -15,8 +15,6 @@ if env["PIOPLATFORM"] == "espressif32":
if os.path.exists(safemode_dir):
# print("safemode.bin dir exists")
if os.path.exists(variants_dir):
print("") # dummy print
# print("variants/tasmota exists")
# os.remove(variants_dir) # todo PermissionError: [Errno 1] Operation not permitted:
else:
shutil.copytree(safemode_dir, variants_dir)
shutil.rmtree(variants_dir)
shutil.copytree(safemode_dir, variants_dir)