helpers.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:fdeunlock 作者: ypid 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号