warn for whitespaces in path (#18985)

This commit is contained in:
Jason2866 2023-06-27 20:33:38 +02:00 committed by GitHub
parent 9cf3d16065
commit b10b42ff34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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 ***")