things
parent
3a31879d70
commit
f48dd00bc3
@ -1,4 +1,12 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
print('Content-Type: image/png')
|
import sys
|
||||||
print(open('out/waves.png', 'rb').read())
|
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…
Reference in New Issue