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 and pull[bot] committed Jan 11, 2024
1 parent 804fbde commit a8cd9e6
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 a8cd9e6

Please sign in to comment.