Skip to content

Commit

Permalink
Merge pull request #33 from ladyada/master
Browse files Browse the repository at this point in the history
Add extra / in path in case folks forgot it
  • Loading branch information
jepler committed Dec 27, 2020
2 parents 8e17f6e + 156d52e commit 77f9d3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adafruit_slideshow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
)
]

Expand Down

0 comments on commit 77f9d3d

Please sign in to comment.