From 080335bbe7e88cb8e59232de1ad11384f78d929a Mon Sep 17 00:00:00 2001 From: Kunhui-Li Date: Sat, 2 Apr 2022 10:39:19 +0800 Subject: [PATCH] config_tools: fix the issue that fail to read XSD file fix the path issue that fail to read XSD file. Tracked-On: #6689 Signed-off-by: Kunhui-Li Reviewed-by: Junjie Mao --- misc/config_tools/board_inspector/board_inspector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/config_tools/board_inspector/board_inspector.py b/misc/config_tools/board_inspector/board_inspector.py index 833c074ab..a5267708d 100755 --- a/misc/config_tools/board_inspector/board_inspector.py +++ b/misc/config_tools/board_inspector/board_inspector.py @@ -116,7 +116,7 @@ def main(board_name, board_xml, args): module.extract(args, board_etree) # Validate the XML against XSD assertions - count = validator.validate_board("schema/boardchecks.xsd", board_etree) + count = validator.validate_board(os.path.join(script_dir, 'schema', 'boardchecks.xsd'), board_etree) if count == 0: logging.info("All board checks passed.")