Skip to content

Commit 5e62273

Browse files
authored
fix error when env not there
1 parent e2f8a4e commit 5e62273

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
@@ -176,7 +176,10 @@ def add_tinyuf2_extra_image():
176176
libs = []
177177

178178
variants_dir = join(FRAMEWORK_DIR, "variants")
179-
build_variants_dir = join(board_config.get("build.variants_dir"))
179+
try:
180+
build_variants_dir = join(board_config.get("build.variants_dir"))
181+
except:
182+
build_variants_dir=""
180183

181184
if "build.variants_dir" in board_config:
182185
if len(build_variants_dir) > 1:

0 commit comments

Comments
 (0)