This commit is contained in:
Felix Pankratz 2021-12-28 23:45:28 +01:00
parent 3a31879d70
commit f48dd00bc3

View File

@ -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())