summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpywal/gen_colors.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pywal/gen_colors.py b/pywal/gen_colors.py
index f626125..c4a4623 100755
--- a/pywal/gen_colors.py
+++ b/pywal/gen_colors.py
@@ -25,7 +25,7 @@ def random_img(img_dir):
images = [img for img in os.scandir(img_dir)
if img.name.endswith(file_types) and img.name != current_wall]
- return pathlib.Path(img_dir / random.choice(images))
+ return pathlib.Path(img_dir / random.choice(images).name)
def get_image(img):