I am trying to make some image manipulation software. On many popular operating systems there would be a default picture folder. For example:
Mac: /User/corvid/Pictures/
Ubuntu: /home/corvid/Pictures/
Windows: C:\\user\\corvid\\My Pictures
I know of a way to make it work for windows based on this question
from win32com.shell import shell, shellcon
print shell.SHGetFolderPath(0, shellcon.CSIDL_MYPICTURES, None, 0)
However, is there a way to make this a bit more generic? Is there a way to fetch the "Pictures" directory in a platform-independent way?