summaryrefslogtreecommitdiff
path: root/pywal/image.py
diff options
context:
space:
mode:
authorLorenz Leitner <lorenz.leitner@student.tugraz.at>2019-03-15 09:15:42 +0100
committerLorenz Leitner <lorenz.leitner@student.tugraz.at>2019-03-15 09:15:42 +0100
commit8b6ca5cbabc0cd982b72d4aede5639e663b5cdea (patch)
tree9931d230c4a284076e55bee7333937cad43b02ec /pywal/image.py
parente0c30a34a08feb2d8a0aa1b9f1019c27df6837fe (diff)
Check file ending
Diffstat (limited to 'pywal/image.py')
-rw-r--r--pywal/image.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pywal/image.py b/pywal/image.py
index d535b67..a3ddd8a 100644
--- a/pywal/image.py
+++ b/pywal/image.py
@@ -22,8 +22,8 @@ def get_image_dir_recursive(img_dir):
images = []
for path, subdirs, files in os.walk(img_dir):
for name in files:
- print(os.path.join(path, name))
- images.append(os.path.join(path, name))
+ if name.lower().endswith(file_types):
+ images.append(os.path.join(path, name))
return images, current_wall