mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-05-29 06:07:35 +02:00
General: Fix test.
This commit is contained in:
parent
b5c27de8b5
commit
d82de89d36
@ -25,7 +25,7 @@ def random_img(img_dir):
|
|||||||
images = [img for img in os.scandir(img_dir)
|
images = [img for img in os.scandir(img_dir)
|
||||||
if img.name.endswith(file_types) and img.name != current_wall]
|
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):
|
def get_image(img):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user