Find all the available bootstraps and return them.
(cls)
| 235 | |
| 236 | @classmethod |
| 237 | def all_bootstraps(cls): |
| 238 | '''Find all the available bootstraps and return them.''' |
| 239 | forbidden_dirs = ('__pycache__', 'common', '_sdl_common') |
| 240 | bootstraps_dir = join(dirname(__file__), 'bootstraps') |
| 241 | result = set() |
| 242 | for name in listdir(bootstraps_dir): |
| 243 | if name in forbidden_dirs: |
| 244 | continue |
| 245 | filen = join(bootstraps_dir, name) |
| 246 | if isdir(filen): |
| 247 | result.add(name) |
| 248 | return result |
| 249 | |
| 250 | @classmethod |
| 251 | def get_usable_bootstraps_for_recipes(cls, recipes, ctx): |
no outgoing calls