esp32: fix delete examples script

This commit is contained in:
Matthias Ringwald 2020-12-24 16:55:36 +01:00
parent 47a155880c
commit 3cd2e1916c

View File

@ -22,12 +22,12 @@ for file in os.listdir(examples_embedded):
if not file.endswith(".c"):
continue
example = file[:-2]
apps_folder = apps_btstack + example + "/"
apps_folder = apps_btstack + "example/" + example + "/"
if os.path.exists(apps_folder):
shutil.rmtree(apps_folder)
print("- %s" % example)
print("Deleting example folder")
examples_folder = apps_btstack + "/examples"
examples_folder = apps_btstack + "/example"
if os.path.exists(examples_folder):
shutil.rmtree(examples_folder)