mirror of
https://github.com/dylanaraps/pywal.git
synced 2024-12-01 20:33:51 +01:00
Check file ending
This commit is contained in:
parent
e0c30a34a0
commit
8b6ca5cbab
@ -22,8 +22,8 @@ def get_image_dir_recursive(img_dir):
|
|||||||
images = []
|
images = []
|
||||||
for path, subdirs, files in os.walk(img_dir):
|
for path, subdirs, files in os.walk(img_dir):
|
||||||
for name in files:
|
for name in files:
|
||||||
print(os.path.join(path, name))
|
if name.lower().endswith(file_types):
|
||||||
images.append(os.path.join(path, name))
|
images.append(os.path.join(path, name))
|
||||||
|
|
||||||
return images, current_wall
|
return images, current_wall
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user