Fixes 2823, zip files not loaded by ImageLoaderPygame.

This commit is contained in:
victor-rene 2015-01-09 18:21:48 +01:00
parent bba6e5bdc5
commit e1363d3042
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ class ImageLoaderPygame(ImageLoaderBase):
im = None
if self._inline:
im = pygame.image.load(filename, 'x.{}'.format(self._ext))
elif isfile(filename):
elif isfile(str(filename)):
with open(filename, 'rb') as fd:
im = pygame.image.load(fd)
elif isinstance(filename, bytes):