From e1363d304274e133cd8ac7143a811a12c465694a Mon Sep 17 00:00:00 2001 From: victor-rene Date: Fri, 9 Jan 2015 18:21:48 +0100 Subject: [PATCH] Fixes 2823, zip files not loaded by ImageLoaderPygame. --- kivy/core/image/img_pygame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kivy/core/image/img_pygame.py b/kivy/core/image/img_pygame.py index 4cc41a4fe..0e8aefbd8 100644 --- a/kivy/core/image/img_pygame.py +++ b/kivy/core/image/img_pygame.py @@ -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):