def add(self, lib: Library): self.libs[lib.get_name()] = lib if lib.is_default(): self.default_lib = lib