mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-06-18 07:36:41 +02:00
General: Log chosen image
This commit is contained in:
parent
cb27b12509
commit
5ed5306aa6
BIN
outfile.png
Normal file
BIN
outfile.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 189 B |
7
wal.py
7
wal.py
@ -127,7 +127,7 @@ def get_image(img):
|
|||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
if image.is_file():
|
if image.is_file():
|
||||||
return image
|
wal_img = image
|
||||||
|
|
||||||
elif image.is_dir():
|
elif image.is_dir():
|
||||||
rand = random.choice(os.listdir(image))
|
rand = random.choice(os.listdir(image))
|
||||||
@ -135,7 +135,10 @@ def get_image(img):
|
|||||||
rand_img = Path(rand_img)
|
rand_img = Path(rand_img)
|
||||||
|
|
||||||
if rand_img.is_file():
|
if rand_img.is_file():
|
||||||
return rand_img
|
wal_img = rand_img
|
||||||
|
|
||||||
|
print("image: Using image", wal_img)
|
||||||
|
return wal_img
|
||||||
|
|
||||||
|
|
||||||
def magic(color_count, img):
|
def magic(color_count, img):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user