示例#1
0
文件: __init__.py 项目: jarodl/Zinc
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
示例#2
0
文件: __init__.py 项目: jarodl/Zinc
 def __init__(self, path):
     self._loaded = False
     self.path = canonical_path(path)
     self._manifests = {}
     self._load()
示例#3
0
文件: __init__.py 项目: jarodl/Zinc
 def __init__(self, catalog, bundle_name, src_dir):
     self.catalog = catalog
     self.bundle_name = bundle_name
     self.src_dir =  canonical_path(src_dir)