mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-28 08:37:22 +00:00
esp32: allow to create customized example folders with individual sdkconfig file (2)
This commit is contained in:
parent
737cbeaae6
commit
d02bdcc6bb
@ -61,8 +61,12 @@ def create_examples(script_path, suffix):
|
||||
os.makedirs(apps_folder)
|
||||
|
||||
# copy files
|
||||
for item in ['sdkconfig' + suffix, 'set_port.sh']:
|
||||
shutil.copyfile(script_path + '/template/' + item, apps_folder + '/' + item)
|
||||
for item in ['sdkconfig', 'set_port.sh']:
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user