[mod] code lisibility

This commit is contained in:
Laurent Peuch 2016-11-01 10:58:53 +01:00
parent 0393126131
commit f548c14435

View File

@ -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