mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-01-10 07:58:12 +01:00
image: use a different shuffle algo
This commit is contained in:
parent
271cbf4e2b
commit
8d391d0820
@ -25,7 +25,9 @@ def get_random_image(img_dir):
|
||||
print("image: No new images found (nothing to do), exiting...")
|
||||
sys.exit(1)
|
||||
|
||||
return os.path.join(img_dir, random.choice(images).name)
|
||||
random.shuffle(images)
|
||||
|
||||
return os.path.join(img_dir, images[0].name)
|
||||
|
||||
|
||||
def get(img, cache_dir=CACHE_DIR):
|
||||
|
Loading…
Reference in New Issue
Block a user