<div class="gmail_extra"><div class="gmail_quote">On 6 December 2012 00:21, Thomas Kluyver <span dir="ltr"><<a href="mailto:thomas@kluyver.me.uk" target="_blank">thomas@kluyver.me.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

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

</div><br>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:<br><br><a href="http://pyxdg.readthedocs.org/en/latest/basedirectory.html#runtime-directory">http://pyxdg.readthedocs.org/en/latest/basedirectory.html#runtime-directory</a><br>

<br>Thanks,<br>Thomas<br></div>