dGprep.py 文件源码

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

项目:FESetup 作者: halx 项目源码 文件源码
def _search_for_model(names, workdir):
    """
    Check if a model file is available.

    :param names: list of model names to be searcher for, highest ranking
                  first
    :type names: str
    :param workdir: the workdir where the model file is located
    :type name: str
    :type workdir: str

    :returns: the path to the model file or None if model file not found
    """

    for name in names:
        path = os.path.join(workdir, name)

        if os.access(path, os.F_OK):
            return path

    return None
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号