def create_catalog_at_path(path, id): path = canonical_path(path) try: makedirs(path) except OSError, e: if e.errno == 17: pass # directory already exists else: raise e
def __init__(self, path): self._loaded = False self.path = canonical_path(path) self._manifests = {} self._load()
def __init__(self, catalog, bundle_name, src_dir): self.catalog = catalog self.bundle_name = bundle_name self.src_dir = canonical_path(src_dir)