title: Is there a standard way to get the user config directory in python
body: <p>I can get the home with <code>os.path.expanduser("~")</code> but is there a standard way to get the config directory? Like <code>~/.config</code> in most unices, or the value of <code>$XDG_CONFIG_HOME</code> in (recent?) Linux and <code>C:\Users\&lt;user&gt;\AppData\Local\Roaming</code> in Windows), etc</p>