From 89e12a61c5d26b0bce829938ff512b254b714f65 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 19 Jun 2017 12:17:57 +1000 Subject: Error: Check for imagemagick --- wal.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wal.py b/wal.py index becf3d5..36a3ae1 100644 --- a/wal.py +++ b/wal.py @@ -112,6 +112,12 @@ def get_image(img): """Validate image input.""" image = Path(img) + # Check if the user has Imagemagick installed. + if not shutil.which("convert"): + print("error: imagemagick not found, exiting...") + print("error: wal requires imagemagick to function.") + exit(1) + if image.is_file(): return image -- cgit v1.2.3