mirror of https://github.com/arendst/Tasmota.git
use always actual safemode bins
This commit is contained in:
parent
fe5f17c107
commit
dfa104383e
|
@ -15,8 +15,6 @@ if env["PIOPLATFORM"] == "espressif32":
|
||||||
if os.path.exists(safemode_dir):
|
if os.path.exists(safemode_dir):
|
||||||
# print("safemode.bin dir exists")
|
# print("safemode.bin dir exists")
|
||||||
if os.path.exists(variants_dir):
|
if os.path.exists(variants_dir):
|
||||||
print("") # dummy print
|
|
||||||
# print("variants/tasmota exists")
|
# print("variants/tasmota exists")
|
||||||
# os.remove(variants_dir) # todo PermissionError: [Errno 1] Operation not permitted:
|
shutil.rmtree(variants_dir)
|
||||||
else:
|
|
||||||
shutil.copytree(safemode_dir, variants_dir)
|
shutil.copytree(safemode_dir, variants_dir)
|
||||||
|
|
Loading…
Reference in New Issue