Skip to content

Commit

Permalink
warn for whitespaces in path (arendst#18985)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 authored and RaphDaMan committed Apr 26, 2024
1 parent 7f85830 commit b1ede2f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pio-tools/override_copy.py
Original file line number Diff line number Diff line change
@@ -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 ***")
Expand Down

0 comments on commit b1ede2f

Please sign in to comment.