aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Araps <[email protected]>2017-06-27 21:28:12 +1000
committerDylan Araps <[email protected]>2017-06-27 21:28:12 +1000
commitd82de89d36fd20fc4c8d93d7c3788f84fb7472fb (patch)
tree9a6d1f058f9706a1013b86d6931ef2ec66936941
parentimage: Use os.scandir to find images. (diff)
downloadpywal-d82de89d36fd20fc4c8d93d7c3788f84fb7472fb.tar.xz
pywal-d82de89d36fd20fc4c8d93d7c3788f84fb7472fb.zip
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):