importlib module

A pure Python implementation of import.

import_module(name, package=None)[source]

Import a module.

The ‘package’ argument is required when performing a relative import. It specifies the package to use as the anchor point from which to resolve the relative import to an absolute import.

invalidate_caches()[source]

Call the invalidate_caches() method on all meta path finders stored in sys.meta_path (where implemented).

reload(module)[source]

Reload the module and return it.

The module must have been successfully imported before.