diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2017-06-27 21:28:12 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2017-06-27 21:28:12 +1000 |
| commit | d82de89d36fd20fc4c8d93d7c3788f84fb7472fb (patch) | |
| tree | 9a6d1f058f9706a1013b86d6931ef2ec66936941 | |
| parent | b5c27de8b55483e0157ec899dd4f39fba9f1fe74 (diff) | |
General: Fix test.
| -rwxr-xr-x | pywal/gen_colors.py | 2 |
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): |
