ops.py 文件源码

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

项目:dcgan 作者: zsdonghao 项目源码 文件源码
def get_site_packages_directory():
    """Print and return the site-packages directory.

    Examples
    ---------
    >>> loc = tl.ops.get_site_packages_directory()
    """
    import site
    try:
        loc = site.getsitepackages()
        print("  tl.ops : site-packages in ", loc)
        return loc
    except:
        print("  tl.ops : Cannot find package dir from virtual environment")
        return False
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号