mirror of https://github.com/kivy/kivy.git
Merge pull request #2834 from victor-rene/fix_2823
zip files not loaded by ImageLoaderPygame
This commit is contained in:
commit
ade9e4e62f
|
@ -47,7 +47,7 @@ class ImageLoaderPygame(ImageLoaderBase):
|
||||||
im = None
|
im = None
|
||||||
if self._inline:
|
if self._inline:
|
||||||
im = pygame.image.load(filename, 'x.{}'.format(self._ext))
|
im = pygame.image.load(filename, 'x.{}'.format(self._ext))
|
||||||
elif isfile(filename):
|
elif isfile(str(filename)):
|
||||||
with open(filename, 'rb') as fd:
|
with open(filename, 'rb') as fd:
|
||||||
im = pygame.image.load(fd)
|
im = pygame.image.load(fd)
|
||||||
elif isinstance(filename, bytes):
|
elif isinstance(filename, bytes):
|
||||||
|
|
Loading…
Reference in New Issue