From f548c144357ef9abb565e4265c48395264979521 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Tue, 1 Nov 2016 10:58:53 +0100 Subject: [PATCH] [mod] code lisibility --- prosopopee/prosopopee.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/prosopopee/prosopopee.py b/prosopopee/prosopopee.py index 58e5ae1..6ee4f88 100644 --- a/prosopopee/prosopopee.py +++ b/prosopopee/prosopopee.py @@ -233,6 +233,7 @@ def get_settings(): if settings["settings"].get("gm"): SETTINGS["gm"].update(settings["settings"]["gm"]) + return settings @@ -257,10 +258,13 @@ def get_gallery_templates(theme, gallery_path="", parent_templates=None): if Path(".").joinpath("static").exists(): shutil.copytree(Path(".").joinpath("static"), Path(".").joinpath("build", gallery_path, "static")) + else: shutil.copytree( Path(__file__).parent.joinpath("themes", theme, "static"), - Path(".").joinpath("build", gallery_path, "static")) + Path(".").joinpath("build", gallery_path, "static") + ) + return subgallery_templates