diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2017-07-24 22:35:41 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2017-07-24 22:35:41 +1000 |
| commit | 24ae58d9424719c85284e6f0b6194ee8b15cc553 (patch) | |
| tree | 37d048271c4ca3408998327a2c4fa720b16ce9e6 /pywal/image.py | |
| parent | 5ffcaafe82c15cc1848c550e8caea1f5737ea221 (diff) | |
image: Fixed bug causing shuffle to use duplicate images
Diffstat (limited to 'pywal/image.py')
| -rw-r--r-- | pywal/image.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pywal/image.py b/pywal/image.py index 7c51ae0..0e6774b 100644 --- a/pywal/image.py +++ b/pywal/image.py @@ -13,7 +13,7 @@ from . import wallpaper def get_random_image(img_dir): """Pick a random image file from a directory.""" current_wall = wallpaper.get() - current_wall = os.path.basename(current_wall[0]) + current_wall = os.path.basename(current_wall) file_types = (".png", ".jpg", ".jpeg", ".jpe", ".gif") images = [img for img in os.scandir(img_dir) |
