Mercurial > boomslang
diff pyntnclick/resources.py @ 580:27809609eeca pyntnclick
Allow different image basedir.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sat, 11 Feb 2012 16:22:56 +0200 |
parents | 970cdc219e15 |
children | 96ff2d8a8a9a |
line wrap: on
line diff
--- a/pyntnclick/resources.py Sat Feb 11 16:21:20 2012 +0200 +++ b/pyntnclick/resources.py Sat Feb 11 16:22:56 2012 +0200 @@ -36,8 +36,8 @@ paths.append(resource_filename(module, resource_path)) return paths - def load_image(self, image_name, mutators=()): - image_path = self.get_resource_path('images', image_name) + def load_image(self, image_name, mutators=(), basedir='images'): + image_path = self.get_resource_path(basedir, image_name) if image_path not in self._image_cache: image = pygame.image.load(image_path)