Esempio n. 1
0
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
Esempio n. 2
0
 def __init__(self, path):
     self._loaded = False
     self.path = canonical_path(path)
     self._manifests = {}
     self._load()
Esempio n. 3
0
 def __init__(self, catalog, bundle_name, src_dir):
     self.catalog = catalog
     self.bundle_name = bundle_name
     self.src_dir =  canonical_path(src_dir)