diff --git a/event_display.py b/event_display.py
index feba762fc530e8dede764306fb4e4fde10f2a99e..144207ac6ef87ad71d1f17b883d1603bcae82e47 100644
--- a/event_display.py
+++ b/event_display.py
@@ -49,6 +49,6 @@ this_dir = os.path.dirname(os.path.abspath(__file__))
 j2_env = Environment(loader=FileSystemLoader(this_dir),
                      trim_blocks=True)
 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.close()