本文整理汇总了Python中_frozen_importlib_external._install方法的典型用法代码示例。如果您正苦于以下问题:Python _frozen_importlib_external._install方法的具体用法?Python _frozen_importlib_external._install怎么用?Python _frozen_importlib_external._install使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类_frozen_importlib_external
的用法示例。
在下文中一共展示了_frozen_importlib_external._install方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _install
# 需要导入模块: import _frozen_importlib_external [as 别名]
# 或者: from _frozen_importlib_external import _install [as 别名]
def _install(sys_module, _imp_module):
"""Install importlib as the implementation of import."""
_setup(sys_module, _imp_module)
sys.meta_path.append(BuiltinImporter)
sys.meta_path.append(FrozenImporter)
global _bootstrap_external
import _frozen_importlib_external
_bootstrap_external = _frozen_importlib_external
_frozen_importlib_external._install(sys.modules[__name__])
示例2: _install
# 需要导入模块: import _frozen_importlib_external [as 别名]
# 或者: from _frozen_importlib_external import _install [as 别名]
def _install(sys_module, _imp_module):
"""Install importers for builtin and frozen modules"""
_setup(sys_module, _imp_module)
sys.meta_path.append(BuiltinImporter)
sys.meta_path.append(FrozenImporter)
示例3: _install_external_importers
# 需要导入模块: import _frozen_importlib_external [as 别名]
# 或者: from _frozen_importlib_external import _install [as 别名]
def _install_external_importers():
"""Install importers that require external filesystem access"""
global _bootstrap_external
import _frozen_importlib_external
_bootstrap_external = _frozen_importlib_external
_frozen_importlib_external._install(sys.modules[__name__])