mirror of https://github.com/kivy/kivy.git
Fixes 2823, zip files not loaded by ImageLoaderPygame.
This commit is contained in:
parent
bba6e5bdc5
commit
e1363d3042
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue