From d98be353ecd5deff97804312ec798fb227adfbc1 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 9 Aug 2017 11:22:51 +1000 Subject: general: Make pywal compatible with python 3.5 --- pywal/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pywal/image.py') 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: -- cgit v1.2.3