mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-07-16 11:17:48 -06:00
🔨 Fix Windows path backslash treated as escape
Co-Authored-By: Luc <8822552+luc-github@users.noreply.github.com>
This commit is contained in:
parent
51fbe03016
commit
74a6f5961b
1 changed files with 5 additions and 4 deletions
|
@ -55,10 +55,11 @@ if pioutil.is_pio_build():
|
||||||
# Get a reference to the FEATURE_CONFIG under construction
|
# Get a reference to the FEATURE_CONFIG under construction
|
||||||
feat = FEATURE_CONFIG[feature]
|
feat = FEATURE_CONFIG[feature]
|
||||||
|
|
||||||
# Split up passed lines on commas or newlines and iterate
|
# Split up passed lines on commas or newlines and iterate.
|
||||||
# Add common options to the features config under construction
|
# Take care to convert Windows '\' paths to Unix-style '/'.
|
||||||
# For lib_deps replace a previous instance of the same library
|
# Add common options to the features config under construction.
|
||||||
atoms = re.sub(r',\s*', '\n', flines).strip().split('\n')
|
# For lib_deps replace a previous instance of the same library.
|
||||||
|
atoms = re.sub(r',\s*', '\n', flines.replace('\\', '/')).strip().split('\n')
|
||||||
for line in atoms:
|
for line in atoms:
|
||||||
parts = line.split('=')
|
parts = line.split('=')
|
||||||
name = parts.pop(0)
|
name = parts.pop(0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue