Skip to content

Commit fa1a8af

Browse files
authored
Merge pull request #8 from kattni/folder-fix
Fix for specifing image lib
2 parents f09be0f + 4141175 commit fa1a8af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adafruit_slideshow.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ def __init__(self, display, backlight_pwm, *, folder="/", order=PlayBackOrder.AL
173173

174174
# Load the image names before setting order so they can be reordered.
175175
self._img_start = None
176-
self._file_list = list(filter(lambda x: x.endswith("bmp"), os.listdir(folder)))
176+
self._file_list = [folder+"/"+f for f in os.listdir(folder) if (f.endswith(".bmp")
177+
and not f.startswith("."))]
177178

178179
self._order = None
179180
self.order = order

0 commit comments

Comments
 (0)