def get_user_dir(dir_type):
dir_path = None
if dir_type == 'config':
dir_path = user_config_dir(appname='fdeunlock')
elif dir_type == 'data':
dir_path = user_data_dir(appname='fdeunlock')
else:
raise NotImplementedError
os.makedirs(dir_path, exist_ok=True) # pylint: disable=unexpected-keyword-arg
return dir_path
评论列表
文章目录