Re: [Python-Dev] Fixing #7175: a standard location for Python config files
Hello, Fred Drake fdrake at acm.org wrote:
+0.5
I'd like to see a more complete proposal, including:
- what to do with Windows, Mac OS X
PEP 370 already specifies a directory for Python config files:
user data directory
Usually the parent directory of the user site directory. It's meant for Python version specific data like config files, docs, > images and translations.
Unix (including Mac) ~/.local/lib/python2.6 Windows %APPDATA%/Python/Python26
Regards
PEP 370 already specifies a directory for Python config files:
user data directory
Usually the parent directory of the user site directory. It's meant for Python version specific data like config files, docs, images and translations.
Thanks for pointing that. However, I have to disagree with the PEP here: config files are not data files. Considering the FHS or the XDG Base Directory specifications, there is a precedent in distinguishing user config (edited by the user through a text editor or settings graphical window), program data (state) and cache (files for speedups that can safely be deleted). Regards
On Wed, Aug 11, 2010 at 10:58 PM, Éric Araujo
Considering the FHS or the XDG Base Directory specifications, there is a precedent in distinguishing user config (edited by the user through a text editor or settings graphical window), program data (state) and cache (files for speedups that can safely be deleted).
Right. The wording in that PEP is ambiguous at best, but the inclusion of the Python version number in the listed path suggests that this is for automatically managed stat (like those trashy *.pth files some tools worry about), not for something the human user is going to manipulate directly. That PEP is particularly concerned with package management per user (a dodgy proposition at best), so everything there is about package management tool support, not user-manipulated configuration data. -Fred -- Fred L. Drake, Jr. <fdrake at gmail.com> "A storm broke loose in my mind." --Albert Einstein
participants (3)
-
Adal Chiriliuc
-
Fred Drake
-
Éric Araujo