From cfba36bd6c03158fb3fac66fd42c98f3dc764955 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Tue, 9 Feb 2016 06:35:31 +0100 Subject: [PATCH] [mod] don't try to work without gm anymore --- prosopopee/prosopopee.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/prosopopee/prosopopee.py b/prosopopee/prosopopee.py index e386426..6b2899e 100644 --- a/prosopopee/prosopopee.py +++ b/prosopopee/prosopopee.py @@ -117,10 +117,9 @@ def error(test, error_message): def main(): - has_gm = True if os.system("which gm > /dev/null") != 0: - has_gm = False - sys.stderr.write("WARNING: I can't locate the 'gm' binary, I won't be able to resize images.\n") + sys.stderr.write("ERROR: I can't locate the 'gm' binary, I won't be able to resize images, please install the 'graphicsmagick' package.\n") + sys.exit(1) error(os.path.exists(os.path.join(os.getcwd(), "settings.yaml")), "I can't find a settings.yaml in the current working directory")