get all bootstrap directories, following the MRO path
(self)
| 140 | return modname.split(".", 2)[-1] |
| 141 | |
| 142 | def get_bootstrap_dirs(self): |
| 143 | """get all bootstrap directories, following the MRO path""" |
| 144 | |
| 145 | # get all bootstrap names along the __mro__, cutting off Bootstrap and object |
| 146 | classes = self.__class__.__mro__[:-2] |
| 147 | bootstrap_names = [cls.name for cls in classes] + ['common'] |
| 148 | bootstrap_dirs = [ |
| 149 | join(self.ctx.root_dir, 'bootstraps', bootstrap_name) |
| 150 | for bootstrap_name in reversed(bootstrap_names) |
| 151 | ] |
| 152 | return bootstrap_dirs |
| 153 | |
| 154 | def _copy_in_final_files(self): |
| 155 | if self.name in SDL_BOOTSTRAPS: |