1#how to open file with the default application for that file set by the OS
2
3import os
4
5filename = "PATH_TO_FILE" # EG. "C:\Users\baguette\Downloads\image.png"
6
7os.system("open " + shlex.quote(filename)) #MacOS/X
8os.system("start " + filename) #windows
9
10#Information and more available at
11#https://stackoverflow.com/questions/434597/open-document-with-default-os-application-in-python-both-in-windows-and-mac-os