[mod] autopep8
This commit is contained in:
parent
f50ba00300
commit
9cbb1eca5e
@ -183,8 +183,8 @@ def main():
|
||||
for item in settings["menu"]:
|
||||
for link in item:
|
||||
item_file = link
|
||||
error(os.path.exists(os.path.join(os.getcwd(), item_file+".yaml")), "I can't find a "+item_file+".yaml in the current working directory")
|
||||
open(os.path.join("build", item_file+".html"), "w").write(page_template.render(settings=settings, pages=yaml.safe_load(open(item_file+".yaml", "r")), galleries=front_page_galleries_cover).encode("Utf-8"))
|
||||
error(os.path.exists(os.path.join(os.getcwd(), item_file + ".yaml")), "I can't find a " + item_file + ".yaml in the current working directory")
|
||||
open(os.path.join("build", item_file + ".html"), "w").write(page_template.render(settings=settings, pages=yaml.safe_load(open(item_file + ".yaml", "r")), galleries=front_page_galleries_cover).encode("Utf-8"))
|
||||
|
||||
Image.base_dir = os.getcwd()
|
||||
Image.target_dir = os.path.join(os.getcwd(), "build")
|
||||
@ -192,6 +192,5 @@ def main():
|
||||
open(os.path.join("build", "index.html"), "w").write(index_template.render(settings=settings, galleries=front_page_galleries_cover, Image=Image).encode("Utf-8"))
|
||||
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
Loading…
x
Reference in New Issue
Block a user