mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-07-11 08:47:48 -06:00
🔨 Fix path handling for generic variant (#27528)
This commit is contained in:
parent
aa80cb0620
commit
1df97254cb
1 changed files with 4 additions and 2 deletions
|
@ -51,6 +51,8 @@ if pioutil.is_pio_build():
|
|||
|
||||
# Make sure the local variant sub-folder exists
|
||||
if marlin_variant_pattern.match(str(variant).lower()):
|
||||
source_dir = Path("buildroot/share/PlatformIO/variants", variant)
|
||||
here = Path.cwd()
|
||||
variants_dir = here / 'buildroot' / 'share' / 'PlatformIO' / 'variants'
|
||||
source_dir = variants_dir / variant
|
||||
assert source_dir.is_dir()
|
||||
board.update("build.variants_dir", "buildroot/share/PlatformIO/variants");
|
||||
board.update("build.variants_dir", str(variants_dir));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue