class documentation

class VendorImporter: (source)

View In Hierarchy

A PEP 302 meta path importer for finding optionally-vendored or otherwise naturally-installed packages from root_name.

Method __init__ Undocumented
Method create_module Undocumented
Method exec_module Undocumented
Method find_spec Return a module spec for vendored names.
Method install Install this importer into sys.meta_path if not already present.
Method load_module Iterate over the search path to locate and load fullname.
Instance Variable root_name Undocumented
Instance Variable vendor_pkg Undocumented
Instance Variable vendored_names Undocumented
Property search_path Search first the vendor package then as a natural package.
Method _module_matches_namespace Figure out if the target module is vendored.
def __init__(self, root_name, vendored_names=(), vendor_pkg=None): (source)

Undocumented

def create_module(self, spec): (source)

Undocumented

def exec_module(self, module): (source)

Undocumented

def find_spec(self, fullname, path=None, target=None): (source)

Return a module spec for vendored names.

def install(self): (source)

Install this importer into sys.meta_path if not already present.

def load_module(self, fullname): (source)

Iterate over the search path to locate and load fullname.

root_name = (source)

Undocumented

vendor_pkg = (source)

Undocumented

vendored_names = (source)

Undocumented

@property
search_path = (source)

Search first the vendor package then as a natural package.

def _module_matches_namespace(self, fullname): (source)

Figure out if the target module is vendored.