in composer_local_dev/files.py [0:0]
def get_available_environments(composer_dir: pathlib.Path):
"""
List local composer environments.
Any directory with 'config.json' file placed directly under 'composer_dir'
directory is considered to be an environment directory.
"""
return [
path
for path in composer_dir.iterdir()
if path.is_dir() and (path / "config.json").is_file()
]