From 4f9a64faf846c3d8cdaa1676962890b2919482a9 Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Sun, 18 Oct 2020 17:59:56 +0200 Subject: [PATCH] client.py: Suffixes of image files are also allowed to be in upper case --- playbook/templates/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbook/templates/client.py b/playbook/templates/client.py index 8f3ce9f..f11ffb4 100755 --- a/playbook/templates/client.py +++ b/playbook/templates/client.py @@ -15,7 +15,7 @@ binding_back = [ord('h'), ord('q'), curses.KEY_BACKSPACE] binding_exit = [ord('Q')] def show_pictures(path): - files = sorted([str(f) for f in path.iterdir() if f.is_file() and f.suffix in ['.png', '.jpg', '.jpeg', '.gif']]) + files = sorted([str(f) for f in path.iterdir() if f.is_file() and f.suffix.lower() in ['.png', '.jpg', '.jpeg', '.gif']]) files.insert(0, '/usr/bin/imvr') subprocess.call(files) return True