WLED/pio/user_config_copy.py

10 wiersze
256 B
Python
Czysty Zwykły widok Historia

2020-11-17 23:54:41 +00:00
Import('env')
import os
import shutil
# copy WLED00/my_config_sample.h to WLED00/my_config.h
if os.path.isfile("wled00/my_config.h"):
print ("*** use existing my_config.h ***")
else:
shutil.copy("wled00/my_config_sample.h", "wled00/my_config.h")