From d82de89d36fd20fc4c8d93d7c3788f84fb7472fb Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 27 Jun 2017 21:28:12 +1000 Subject: [PATCH] General: Fix test. --- pywal/gen_colors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):