From 5ed5306aa68f10e7371a224237af38c54060373b Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 19 Jun 2017 16:15:13 +1000 Subject: [PATCH] General: Log chosen image --- outfile.png | Bin 0 -> 189 bytes wal.py | 7 +++++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 outfile.png diff --git a/outfile.png b/outfile.png new file mode 100644 index 0000000000000000000000000000000000000000..fc4a36f6dadf64ecafbca1ac18fa93350930dadd GIT binary patch literal 189 zcmeAS@N?(olHy`uVBq!ia0vp^CxBRlg9%8wAA33%NVRynIEGZrd3(u`?_hw0Ti}}u zT1z@RMQ^NKdCa-eX*YB8{-0^j&%A$=cfS4dvR6iSr{0!CU#zQty6t@NPT9WSMYree zy;B$WzUcPty?5enhvbz%75Zl&CU{KgP=t#_H%GEyqK;CJYsWdjJ3c literal 0 HcmV?d00001 diff --git a/wal.py b/wal.py index fcb21a0..18f701a 100644 --- a/wal.py +++ b/wal.py @@ -127,7 +127,7 @@ def get_image(img): exit(1) if image.is_file(): - return image + wal_img = image elif image.is_dir(): rand = random.choice(os.listdir(image)) @@ -135,7 +135,10 @@ def get_image(img): rand_img = Path(rand_img) 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):