WLED/pio-scripts/user_config_copy.py

10 lines
256 B
Python
Raw Normal View History

2020-11-18 00:54:41 +01: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")