How do I store desktop application data in a cross platform way for python?
Well, I hate to have been the one to answer my own question, but no one else seems to know. I’m leaving the answer for posterity. APPNAME = “MyApp” import sys from os import path, environ if sys.platform == ‘darwin’: from AppKit import NSSearchPathForDirectoriesInDomains # http://developer.apple.com/DOCUMENTATION/Cocoa/Reference/Foundation/Miscellaneous/Foundation_Functions/Reference/reference.html#//apple_ref/c/func/NSSearchPathForDirectoriesInDomains # NSApplicationSupportDirectory = 14 # NSUserDomainMask = 1 # … Read more