#!/usr/bin/env python3 import sys import io sys.path.append('..') from waves import create_wpotd buf = io.BytesIO() create_wpotd(buf) sys.stdout.write('Content-Type: image/png\r\n\r\n') sys.stdout.flush() sys.stdout.buffer.write(buf.getvalue())