Beispiel #1
0
 def __init__(self, directory, package_name, parent_loader=None):
     self._package = murano_package.MuranoPackage()
     self._package.name = package_name
     self._parent = parent_loader
     if directory in TestClassLoader._classes_cache:
         self._classes = TestClassLoader._classes_cache[directory]
     else:
         self._classes = {}
         self._build_index(directory)
         TestClassLoader._classes_cache[directory] = self._classes
     self._functions = {}
     super(TestClassLoader, self).__init__()
 def load_package(self, name):
     package = murano_package.MuranoPackage()
     package.name = name
     return package