Skip to content

Commit

Permalink
Merge pull request #8 from kattni/folder-fix
Browse files Browse the repository at this point in the history
Fix for specifing image lib
  • Loading branch information
caternuson committed Oct 22, 2018
2 parents f09be0f + 4141175 commit fa1a8af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion adafruit_slideshow.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ def __init__(self, display, backlight_pwm, *, folder="/", order=PlayBackOrder.AL

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

self._order = None
self.order = order
Expand Down

0 comments on commit fa1a8af

Please sign in to comment.