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