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):