diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2017-08-10 09:23:50 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2017-08-10 09:23:50 +1000 |
| commit | c61960722d28373a4668814d996a248819e220c0 (patch) | |
| tree | 3b6895d30d82c08ae8ffb7e691d2ecd78d5dafc8 /pywal/image.py | |
| parent | b1abb37f8c38e6bc6cbd89842717608e93694abf (diff) | |
general: Remove all pathlib usage
Diffstat (limited to 'pywal/image.py')
| -rw-r--r-- | pywal/image.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pywal/image.py b/pywal/image.py index e01c3d1..bb495b1 100644 --- a/pywal/image.py +++ b/pywal/image.py @@ -16,7 +16,7 @@ def get_random_image(img_dir): current_wall = os.path.basename(current_wall) file_types = (".png", ".jpg", ".jpeg", ".jpe", ".gif") - images = [img for img in os.scandir(str(img_dir)) + images = [img for img in os.scandir(img_dir) if img.name.endswith(file_types) and img.name != current_wall] if not images: |
