diff options
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 787bb80..e55a0b1 100644 --- a/pywal/image.py +++ b/pywal/image.py @@ -17,7 +17,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(img_dir) + images = [img for img in os.scandir(str(img_dir)) if img.name.endswith(file_types) and img.name != current_wall] if not images: |
