explorer.py 文件源码

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

项目:SceneExplorer 作者: mochio326 项目源码 文件源码
def get_project_dir(path):
    '''
    maya??????????????
    :param path: ?????????????
    :return: ?????????None
    '''
    drive = os.path.splitdrive(path)[0]
    parent = os.path.dirname(path)
    if drive+'/' == parent:
        return None
    f = r'{0}/workspace.mel'.format(parent)
    if os.path.isfile(f):
        return parent
    return get_project_dir(parent)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号