Announcing config-path an OS independent configuration file paths

Barry Scott barry at barrys-emacs.org
Mon Sep 30 10:51:03 EDT 2019



> On 30 Sep 2019, at 14:17, Paul Moore <p.f.moore at gmail.com> wrote:
> 
> How does this compare to the existing appdirs module on PyPI?
> 

I did not know about appdirs.

It does not seem to have separate read vs. save paths.
Required for XDG specification where a path of config folder is defined.

On 1st run the config may be in a system directory which the user cannot write to.
Saving a config file will go into the users config file.
On the 2nd run that users config should be read not the system config.

appdirs covers the location of more type of files, like cache and data.

Barry




More information about the Python-list mailing list