Skip to content

Commit 54ece58

Browse files
authored
Handle case when ald is not defined
1 parent 2165443 commit 54ece58

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

builder/frameworks/component_manager.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ def __init__(self, env):
5252
# Get Arduino libraries installation directory
5353
ald = self.platform.get_package_dir("framework-arduinoespressif32-libs")
5454
# Get MCU-specific Arduino libraries directory
55-
self.arduino_libs_mcu = (str(Path(ald) / self.mcu))
55+
self.arduino_libs_mcu = (
56+
str(Path(ald) / self.mcu) if ald else ""
57+
)
5658

5759

5860
class ComponentLogger:

0 commit comments

Comments
 (0)