Package list python-pyqrcode / 5c2426b7-a8d4-4a01-a673-68c722f1d0f0/main debian / tests / test-example-py3
5c2426b7-a8d4-4a01-a673-68c722f1d0f0/main

Tree @5c2426b7-a8d4-4a01-a673-68c722f1d0f0/main (Download .tar.gz)

test-example-py3 @5c2426b7-a8d4-4a01-a673-68c722f1d0f0/mainraw · history · blame

#!/usr/bin/env python3

import pyqrcode
import os.path

qr = pyqrcode.create('Unladden swallow')
qr.png('famous-joke.png', scale=5)

if not os.path.exists("famous-joke.png"):
    raise("missing file")