I can get the home with os.path.expanduser("~")
but is there a standard way to get the config directory? Like ~/.config
in most unices, or the value of $XDG_CONFIG_HOME
in (recent?) Linux and C:\Users\<user>\AppData\Local\Roaming
in Windows), etc
You can take advantage of python third party library appdirs which does all the heavy lifting for you across multiple platforms ( Windows, Linux & Mac )
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With