rosmsg_metafinder.py 文件源码

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

项目:rosimport 作者: pyros-dev 项目源码 文件源码
def deactivate(*paths):
    """ CAREFUL : even if we remove our path_hooks, the created finder are still cached in sys.path_importer_cache."""
    #if sys.version_info >= (2, 7, 12):  # TODO : which exact version matters ?
    sys.path_hooks.remove(ROSImportFinder)
    # else:  # older (trusty) version
    #     sys.path_hooks.remove(_ros_finder_instance_obsolete_python)
    if paths:
        sys.path.remove(*paths)

    sys.meta_path.remove(ros_distro_finder)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号