Skip to content
Snippets Groups Projects
Commit d60c3723 authored by Dirk Sarpe's avatar Dirk Sarpe
Browse files

correct path to write website to

parent 3730aeca
Branches
No related tags found
No related merge requests found
...@@ -49,6 +49,6 @@ this_dir = os.path.dirname(os.path.abspath(__file__)) ...@@ -49,6 +49,6 @@ this_dir = os.path.dirname(os.path.abspath(__file__))
j2_env = Environment(loader=FileSystemLoader(this_dir), j2_env = Environment(loader=FileSystemLoader(this_dir),
trim_blocks=True) trim_blocks=True)
output = j2_env.get_template('template.html').render(html_list = html_list) output = j2_env.get_template('template.html').render(html_list = html_list)
out_file = open("website/events.html", "w") out_file = open(this_dir + "/website/events.html", "w")
out_file.write(output.encode("utf-8")) out_file.write(output.encode("utf-8"))
out_file.close() out_file.close()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment