How can I get this program to find the Pictures folder on any operating system? E.g. Windows, Linux, and Mac.
My program will just take an input and create a QRcode image.
I know there are some standard modules to help me, like os and sys, but I wasn't able to figure it out on my own.
import qrcode
data = 'This is an example.'
qr = qrcode.QRCode(version=1)
qr.add_data(data)
img = qr.make_image(fill_color='white', back_color='purple')
img.save('$HOME/Pictures/qrcode_make_python.png')