6 Feb
2010
6 Feb
'10
9:55 p.m.
Tarek Ziadé
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? Antoine.