Skip to content

Commit 63152a2

Browse files
authored
fix error when env not there
1 parent da46318 commit 63152a2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/platformio-build.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,10 @@ def add_tinyuf2_extra_image():
179179
libs = []
180180

181181
variants_dir = join(FRAMEWORK_DIR, "variants")
182-
build_variants_dir = join(board_config.get("build.variants_dir"))
182+
try:
183+
build_variants_dir = join(board_config.get("build.variants_dir"))
184+
except:
185+
build_variants_dir=""
183186

184187
if "build.variants_dir" in board_config:
185188
if len(build_variants_dir) > 1:

0 commit comments

Comments
 (0)