From 12072b313672f893d178aa449b1a8d29a2fd506c Mon Sep 17 00:00:00 2001 From: Wang Qixiang <43193572+wqx6@users.noreply.github.com> Date: Fri, 31 Mar 2023 23:06:29 +0800 Subject: [PATCH] Use absolute path for module_initialized check (#25891) --- scripts/checkout_submodules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/checkout_submodules.py b/scripts/checkout_submodules.py index 55da322e8184b0..8afe1a93fd7564 100755 --- a/scripts/checkout_submodules.py +++ b/scripts/checkout_submodules.py @@ -73,7 +73,7 @@ def module_matches_platforms(module: Module, platforms: set) -> bool: def module_initialized(module: Module) -> bool: - return bool(os.listdir(module.path)) + return bool(os.listdir(os.path.join(CHIP_ROOT, module.path))) def make_chip_root_safe_directory() -> None: