You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/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())
|
|
|