本文整理匯總了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__])