main
Felix Pankratz 3 years ago
parent 3a31879d70
commit f48dd00bc3

@ -1,4 +1,12 @@
#!/usr/bin/env python3
print('Content-Type: image/png')
print(open('out/waves.png', 'rb').read())
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())

Loading…
Cancel
Save