Skip to content

Commit b8fdb89

Browse files
committed
fixes trailing slash issue with custom board path.
1 parent 30b1f7d commit b8fdb89

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

make.py

+3
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,9 @@ def create_lvgl_header():
264264
get_submodules()
265265

266266
if custom_board_path is not None:
267+
if custom_board_path.endswith('/'):
268+
custom_board_path = custom_board_path[:-1]
269+
267270
board_name = os.path.split(custom_board_path)[-1]
268271
dst_path = f'lib/micropython/ports/{target}/boards/{board_name}'
269272
if os.path.exists(dst_path):

0 commit comments

Comments
 (0)