diff --git a/pio/override_copy.py b/pio/override_copy.py new file mode 100644 index 000000000..885dcd463 --- /dev/null +++ b/pio/override_copy.py @@ -0,0 +1,9 @@ +Import('env') +import os +import shutil + +# copy tasmota/user_config_override_sample.h to tasmota/user_config_override.h +if os.path.isfile("tasmota/user_config_override.h"): + print ("*** use provided user_config_override.h as planned ***") +else: + shutil.copy("tasmota/user_config_override_sample.h", "tasmota/user_config_override.h")