We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
os.path.join
1 parent 21a62ca commit 8a6a473Copy full SHA for 8a6a473
adafruit_slideshow.py
@@ -244,11 +244,11 @@ def _check_json_file(file):
244
# Load the image names before setting order so they can be reordered.
245
self._img_start = None
246
self._file_list = [
247
- folder + f
+ os.path.join(folder, f)
248
for f in os.listdir(folder)
249
if (
250
not f.startswith(".")
251
- and (f.endswith(".bmp") or _check_json_file(folder + f))
+ and (f.endswith(".bmp") or _check_json_file(os.path.join(folder, f)))
252
)
253
]
254
0 commit comments