Skip to content
Snippets Groups Projects
Verified Commit e67ef7b3 authored by Owen Graham's avatar Owen Graham
Browse files

Make `visualizer.py` no longer itself a CGI

parent e128c2af
No related branches found
No related tags found
No related merge requests found
visualizer.py 100755 → 100644
#!/usr/bin/env python3
import datetime
from io import BytesIO
import json
import math
from types import SimpleNamespace
from urllib.request import urlopen
from wsgiref.handlers import CGIHandler
# Activate the virtual env to get access to non-standard packages.
activator = 'venv/bin/activate_this.py'
......@@ -380,4 +377,4 @@ def read_data(station, year):
if __name__ == '__main__':
CGIHandler().run(app)
app.run()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment