From a3a1451a5ccf4b39da585bb8a658238376875767 Mon Sep 17 00:00:00 2001 From: Julien Malik Date: Mon, 15 Feb 2016 16:41:06 +0100 Subject: [PATCH] [enh] allow to customize gm quality in root settings --- prosopopee/prosopopee.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/prosopopee/prosopopee.py b/prosopopee/prosopopee.py index e3c6e78..43777c6 100644 --- a/prosopopee/prosopopee.py +++ b/prosopopee/prosopopee.py @@ -144,6 +144,10 @@ def main(): global DEFAULT_GM_AUTOORIENT DEFAULT_GM_AUTOORIENT = settings.get("auto-orient") + if settings.get("quality"): + global DEFAULT_GM_QUALITY + DEFAULT_GM_QUALITY = settings.get("quality") + front_page_galleries_cover = [] dirs = filter(lambda x: x not in (".", "..") and os.path.isdir(x) and os.path.exists(os.path.join(os.getcwd(), x, "settings.yaml")), os.listdir(os.getcwd()))