General: Log chosen image

This commit is contained in:
Dylan Araps 2017-06-19 16:15:13 +10:00
parent cb27b12509
commit 5ed5306aa6
2 changed files with 5 additions and 2 deletions

BIN
outfile.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 189 B

7
wal.py
View File

@ -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):