From 7e862adf9a76bd1b215ef0fa87e6873a3ec587d3 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Sat, 24 Apr 2021 20:06:29 +0200 Subject: [PATCH] Autocopy platformio_tasmota_cenv_sample to platformio_tasmota_cenv.ini when not existing --- pio-tools/override_copy.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pio-tools/override_copy.py b/pio-tools/override_copy.py index 5318f9169..137da4171 100644 --- a/pio-tools/override_copy.py +++ b/pio-tools/override_copy.py @@ -13,3 +13,9 @@ if os.path.isfile("platformio_override.ini"): print ("*** use provided platformio_override.ini as planned ***") else: shutil.copy("platformio_override_sample.ini", "platformio_override.ini") + +# copy platformio_tasmota_cenv_sample.ini to platformio_tasmota_cenv.ini +if os.path.isfile("platformio_tasmota_cenv.ini"): + print ("*** use provided platformio_tasmota_cenv.ini as planned ***") +else: + shutil.copy("platformio_tasmota_cenv_sample.ini", "platformio_tasmota_cenv.ini"