From b099aefb9977469bd8eb77b895b5b826c34a093e Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Tue, 1 Nov 2016 09:51:51 +0100 Subject: [PATCH] [mod] more meaningful name --- prosopopee/prosopopee.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/prosopopee/prosopopee.py b/prosopopee/prosopopee.py index f049a95..642e004 100644 --- a/prosopopee/prosopopee.py +++ b/prosopopee/prosopopee.py @@ -439,10 +439,10 @@ def main(): front_page_galleries_cover = [] - dirs = filter(lambda x: x not in (".", "..") and os.path.isdir(x) and + galleries_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())) - error(dirs, "I can't find at least one directory with a settings.yaml in the current working " + error(galleries_dirs, "I can't find at least one directory with a settings.yaml in the current working " "directory (NOT the settings.yaml in your current directory, but one INSIDE A " "DIRECTORY in your current working directory), you don't have any gallery?") @@ -454,7 +454,7 @@ def main(): templates.add_extension('jinja2.ext.with_') feed_template = templates.get_template("feed.xml") - for gallery in dirs: + for gallery in galleries_dirs: front_page_galleries_cover.append(process_directory(gallery, settings, templates)) if settings["rss"]: