[Python-ideas] A common configuration file standard for the stdlib + configparser (or replacer) new API
solipsis at pitrou.net
Sat Feb 6 22:55:31 CET 2010
Tarek Ziadé <ziade.tarek at ...> writes:
> This file would be located in the "data" path returned by the install
> scheme (see sysconfig.py for details)
> so roughly : in sys.prefix for the global one, and in ~/.local/ for
> the local per-user one.
I think it has already been discussed that it's not really the right place for
configuration files. sys.prefix is wrong for that, as well as ~/.local.
If Python needs to have a notion of a standard path for config files, it should
be something separate from the "data" path.
> The files would be a configparser ini-like file, with one mandatory
> section that is the name of the package or
> module in the stdlib the filename
Why such a constraint? Isn't the name of the file sufficient?
More information about the Python-ideas