Package list python-pyqrcode / debian/1.2.1-4 debian / tests / test-example-py3
debian/1.2.1-4

Tree @debian/1.2.1-4 (Download .tar.gz)

test-example-py3 @debian/1.2.1-4raw · 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")