[core] Fix import errors on latest PIO Core

This commit is contained in:
Kuba Szczodrzyński
2022-06-24 21:11:19 +02:00
parent b90723130d
commit 111e5a66b6

View File

@@ -19,6 +19,9 @@ sys.path.insert(0, dirname(__file__))
from tools.util.platform import get_board_manifest from tools.util.platform import get_board_manifest
# Remove current dir so it doesn't conflict with PIO
sys.path.remove(dirname(__file__))
libretuya_packages = None libretuya_packages = None
manifest_default = {"version": "0.0.0", "description": "", "keywords": []} manifest_default = {"version": "0.0.0", "description": "", "keywords": []}
@@ -178,7 +181,6 @@ class LibretuyaPlatform(PlatformBase):
return result return result
def update_board(self, board: PlatformBoardConfig): def update_board(self, board: PlatformBoardConfig):
if "_base" in board: if "_base" in board:
board._manifest = get_board_manifest(board._manifest) board._manifest = get_board_manifest(board._manifest)