eryksun added the comment:

On Windows, using the shell's [Known Folders API][1] is preferred. For Python 
3.6+, an extension module could wrap SHGetKnownFolderPath and provide a dict of 
KNOWNFOLDERID values such as FOLDERID_RoamingAppData.

On Linux, there's the [XDG Base Directory Specification][2]. The application 
directory is created in one or more of the following directories {default in 
brackets}: $XDG_CONFIG_HOME {~/.config}, $XDG_DATA_HOME {~/.local/share}, and 
$XDG_CACHE_HOME {~/.cache}. 

What about Mac OS X?

[1]: https://msdn.microsoft.com/en-us/library/bb776911
[2]: http://standards.freedesktop.org/basedir-spec/latest

----------
nosy: +eryksun
versions: +Python 3.6 -Python 3.4

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24765>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to