[Python-ideas] A standard location for Python configuration files.

Tarek Ziadé ziade.tarek at gmail.com
Thu Oct 22 13:36:08 CEST 2009

On Thu, Oct 22, 2009 at 1:13 PM, Christian Heimes <lists at cheimes.de> wrote:
> First of all we should discuss if we are talking about automatically
> generated config files or human editable config files. If the
> configuration files are frequently edited by a user than ~/.local or
> ~/.config aren't the best place.

In Distutils, those are human-readable files.

> The path ~/.python is a so obvious choice for a file or directory that
> contains Python specific stuff that it probably used by lots of people.
> If we are going to introduce a directory in the user's home directory
> and not in some subfolder like ~/.local or ~/.config, then I like to
> stick to another Unix tradition. Configuration directories are usually
> suffixed with ".d". How about ~/.python.d/?

I can understand the concerns about ~/.python but I find ~/.python.d/
rather cryptic.

What about a more explicit name like ~/.pythonconfig then ?


More information about the Python-ideas mailing list