diff --git a/pio-tools/override_copy.py b/pio-tools/override_copy.py index 53a2762a5..7a45512a8 100644 --- a/pio-tools/override_copy.py +++ b/pio-tools/override_copy.py @@ -1,8 +1,13 @@ Import('env') import os +import pathlib +from os.path import join import shutil +if " " in join(pathlib.Path(env["PROJECT_DIR"])): + print ("\u001b[31;1m*** Whitespace(s) in project path, unexpected issues/errors can happen ***\u001b[0m") + # 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 ***")