Announcing config-path an OS independent configuration file paths

Paul Moore p.f.moore at gmail.com
Mon Sep 30 11:06:48 EDT 2019


On Mon, 30 Sep 2019 at 15:51, Barry Scott <barry at barrys-emacs.org> wrote:
>
> > 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.

Fair enough ;-)

> 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.

Interesting - thanks for the comparison, I'll take a detailed look
next time I need this type of functionality.

Paul



More information about the Python-list mailing list