Fwd: $XDG_RUNTIME_DIR

Thomas Kluyver thomas at kluyver.me.uk
Thu Dec 6 05:43:02 PST 2012


On 6 December 2012 00:21, Thomas Kluyver <thomas at kluyver.me.uk> wrote:

> I still think the basic way to get the runtime directory should raise an
> error if the environment variable isn't set - after all, PyXDG is an
> implementation of the spec. I might offer a wrapper function with a
> strict=True/False parameter, which would fall back on /tmp/app-username.


This felt like the right balance of strictness and convenience - by
default, it will raise an error, but the caller can pass strict=False to
get an automatic fallback. Here's the new documentation:

http://pyxdg.readthedocs.org/en/latest/basedirectory.html#runtime-directory

Thanks,
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/xdg/attachments/20121206/318a976a/attachment-0001.html>


More information about the xdg mailing list