In my previous post I expressed my frustration at the way a perfectly nice and fine idea, a portable way to get the standard configuration and data directory/files, was broken for Linux and BSD, because the authors of appdirs thought the XDG standard was "subject to some interpretation".
Although I said I decided not to use appdirs, I realised that wouldn't help anyone, so I fixed the code.
During the coding phase I discovered that the authors of appdirs broke the XDG standard even more, this time, ignoring XDG_DATA_DIRS, and talking about XDG_CONFIG_DIRS. When I found this I became convinced the *nix part of the implementation was subject to continuous irony, since the comment in this newly found breakage said "Perhaps should *use* that envvar", referring to XDG_CONFIG_DIRS, but writing later in code:
/etc/xdg/<appname>
Sweet, isn't it?
If you want a fixed version, you can grab it from my repository, on the linux-fixes branch:
https://github.com/eddyp/appdirs/tree/linux-fixes