[Python-ideas] Add appdirs module to stdlib

Andrew Barnert abarnert at yahoo.com
Tue Sep 1 11:42:50 CEST 2015

On Sep 1, 2015, at 01:00, Philipp A. <flying-sheep at web.de> wrote:
> When defining a place for config files, cache files, and so on, people usually hack around in a OS-dependent, misinformed, and therefore wrong way.
> Thanks to the tempfile API we at least don’t see people hardcoding /tmp/ too much.
> There is a beautiful little module that does things right and is easy to use: appdirs

Is appdirs compatible with the OS X recommendations (as required by the App Store). Apple only gives you cache and app data directories; prefs are supposed to use NSDefaults API or emulate the file names and formats properly, and you have to be sensitive to the sandbox.)

If so, definitely +1, because that's a pain to do with anything but Qt (or of course PyObjC). If not, -0.5, because making it easier to do it wrong is probably not beneficial, even if that's what many *nix apps end up writing a lot of code to get wrong on Mac...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150901/d85e3e59/attachment-0001.html>

More information about the Python-ideas mailing list