Skip to content

Commit

Permalink
Use absolute path for module_initialized check (#25891)
Browse files Browse the repository at this point in the history
  • Loading branch information
wqx6 authored Mar 31, 2023
1 parent c7b16e6 commit 12072b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/checkout_submodules.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 12072b3

Please sign in to comment.