summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2017-06-27 21:28:12 +1000
committerDylan Araps <dylan.araps@gmail.com>2017-06-27 21:28:12 +1000
commitd82de89d36fd20fc4c8d93d7c3788f84fb7472fb (patch)
tree9a6d1f058f9706a1013b86d6931ef2ec66936941
parentb5c27de8b55483e0157ec899dd4f39fba9f1fe74 (diff)
General: Fix test.
-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):