def __init__(self, manifest): super().__init__() self._entries = { k: JinjaManifestEntry(entry.name, self._rewrite_paths(entry._paths)) for k, entry in manifest._entries.items() } self.used_assets = set()
def __getattr__(self, name): """Get a manifest entry.""" return JinjaManifestEntry(name, [name])
def __getitem__(self, key): """Get a manifest entry.""" return JinjaManifestEntry(key, [key])