def load(self, filepath): dotted = self._dotted_from_filepath(filepath) if dotted is None: return None return import_symbol(dotted)
def __init__(self, module_base): self.module_base = module_base self.base_path = os.path.abspath(os.path.dirname(import_symbol(module_base).__file__))