Is there a standard way to get the user config directory in python

后端 未结 1 1580
旧巷少年郎
旧巷少年郎 2021-02-20 01:56

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

相关标签:
1条回答
  • 2021-02-20 02:22

    You can take advantage of python third party library appdirs which does all the heavy lifting for you across multiple platforms ( Windows, Linux & Mac )

    0 讨论(0)
提交回复
热议问题