| Total Complexity | 1 |
| Total Lines | 11 |
| Duplicated Lines | 0 % |
| Coverage | 85.71% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | # pylint: disable=no-member |
||
| 15 | 1 | def __init__(self, root, config): |
|
| 16 | 1 | self.root = root |
|
| 17 | 1 | self.regenerate_images = config.get('REGENERATE_IMAGES', False) |
|
| 18 | |||
| 19 | 1 | @property |
|
| 20 | def latest(self): |
||
| 21 | 1 | return os.path.join(self.root, self.LATEST) |
|
| 22 | |||
| 23 | 1 | def exists(self, image): |
|
| 24 | 1 | image.root = self.root |
|
| 25 | # TODO: add a way to determine if the styled image was already generated |
||
| 26 | 1 | return os.path.isfile(image.path) and not image.style |
|
| 38 |