<div dir="ltr"><div>But is appdirs only useful if you are running something that's more toward system package / desktop application? A lot of projects today create their own directory to save data, many use $HOME/DOTCUSTOM_DIR. So the use case of appdirs should be addressed.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 1, 2015 at 5:42 AM, Andrew Barnert via Python-ideas <span dir="ltr"><<a href="mailto:python-ideas@python.org" target="_blank">python-ideas@python.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><span class=""><div>On Sep 1, 2015, at 01:00, Philipp A. <<a href="mailto:flying-sheep@web.de" target="_blank">flying-sheep@web.de</a>> wrote:</div><div><br></div><blockquote type="cite"><div><div dir="ltr"><div><div><div><div><div>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.<br><br></div>Thanks to the tempfile API we at least don’t see people hardcoding /tmp/ too much.<br><br></div>There is a beautiful little module that does things right and is easy to use: <a href="https://pypi.python.org/pypi/appdirs" target="_blank">appdirs</a><br></div></div></div></div></div></blockquote><div><br></div></span>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.)<div><div><br></div><div>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...<br></div></div></div><br>_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" rel="noreferrer" target="_blank">http://python.org/psf/codeofconduct/</a><br></blockquote></div><br></div>