Skip to content

Commit

Permalink
fix: Fix platforms listing
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido committed May 16, 2024
1 parent ce206ed commit 83295e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/qibolab/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ def _available_platforms() -> list[str]:
"""Returns the platforms found in the $QIBOLAB_PLATFORMS directory."""
return [
d.name
for d in _platforms_paths().iterdir()
for platforms in _platforms_paths()
for d in platforms.iterdir()
if d.is_dir()
and Path(f"{os.environ.get(PLATFORMS)}/{d.name}/platform.py") in d.iterdir()
]
Expand Down

0 comments on commit 83295e2

Please sign in to comment.