Skip to content

Commit

Permalink
🔨 Fix path handling for generic variant (#27528)
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead authored Nov 12, 2024
1 parent aa80cb0 commit 1df9725
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions buildroot/share/PlatformIO/scripts/generic_create_variant.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@

# 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));

0 comments on commit 1df9725

Please sign in to comment.