From 766aac70d9a65eab985c593a79d2e14fa540080d Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 10 Nov 2022 10:57:13 +0100 Subject: [PATCH] esp32: fix create samples --- port/esp32/create_examples.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/port/esp32/create_examples.py b/port/esp32/create_examples.py index 1c80c0e20..cbd657489 100755 --- a/port/esp32/create_examples.py +++ b/port/esp32/create_examples.py @@ -94,16 +94,13 @@ def create_examples(script_path, suffix): os.makedirs(apps_folder) # copy files - for item in ['sdkconfig', 'set_port.sh']: + for item in ['sdkconfig']: src = script_path + '/template/' + item if item == 'sdkconfig': src = src + suffix dst = apps_folder + '/' + item shutil.copyfile(src, dst) - # mark set_port.sh as executable - os.chmod(apps_folder + '/set_port.sh', 0o755) - # create Makefile file with open(apps_folder + "Makefile", "wt") as fout: fout.write(mk_template.replace("EXAMPLE", example).replace("TOOL", script_path).replace("DATE",time.strftime("%c")))