easyidp.data.user_data_dir#
- easyidp.data.user_data_dir(file_name='')#
Get OS specific data directory path for EasyIDP.
- 参数:
file_name (str) – file to be fetched from the data dir
- 返回:
full path to the user-specific data dir
- 返回类型:
str
备注
Typical user data directories are:
macOS: ~/Library/Application Support/easyidp.data Unix: ~/.local/share/easyidp.data # or in $XDG_DATA_HOME, if defined Win 10: C:\Users\<username>\AppData\Local\easyidp.data
For Unix, we follow the XDG spec and support
$XDG_DATA_HOME
if defined.Referenced from stackoverflow [1] then get github [2] .
引用