summaryrefslogtreecommitdiff
path: root/pywal/image.py
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2017-08-09 11:22:51 +1000
committerDylan Araps <dylan.araps@gmail.com>2017-08-09 11:22:51 +1000
commitd98be353ecd5deff97804312ec798fb227adfbc1 (patch)
tree84491474f6e0648dea3a7689f0626a4809492007 /pywal/image.py
parentd9a0865277dfdfe7951b9b429d5af1f2be27d66c (diff)
general: Make pywal compatible with python 3.5
Diffstat (limited to 'pywal/image.py')
-rw-r--r--pywal/image.py2
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: