From 156d52e2b3fea70b919d2486cdfd0e836b56274d Mon Sep 17 00:00:00 2001 From: lady ada Date: Sun, 27 Dec 2020 12:38:34 -0500 Subject: [PATCH] fix for https://github.com/adafruit/Adafruit_CircuitPython_Slideshow/issues/31 and https://github.com/adafruit/Adafruit_Learning_System_Guides/pull/1318 --- adafruit_slideshow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adafruit_slideshow.py b/adafruit_slideshow.py index 3072bcd..feff825 100755 --- a/adafruit_slideshow.py +++ b/adafruit_slideshow.py @@ -244,11 +244,11 @@ def _check_json_file(file): # Load the image names before setting order so they can be reordered. self._img_start = None self._file_list = [ - folder + f + folder + "/" + f for f in os.listdir(folder) if ( not f.startswith(".") - and (f.endswith(".bmp") or _check_json_file(folder + f)) + and (f.endswith(".bmp") or _check_json_file(folder + "/" + f)) ) ]