def __init__(self, path): Archive.__init__(self) if not os.path.isdir(path): raise ValueError, '\'%s\' is not a directory' % path self.dir = os.path.abspath(path)
def __init__(self, path): Archive.__init__(self) try: self.zip = zipfile.ZipFile(path, "r") except zipfile.BadZipfile, msg: raise ValueError, msg
def __init__(self, path): Archive.__init__(self) self.pITStorage = CreateObject(CLSID_ITStorage, CLSCTX_INPROC_SERVER, interface=IITStorage) wpath = c_wchar_p(path) self.pIStorage = self.pITStorage.StgOpenStorage(wpath, None, STGM_READ | STGM_SHARE_DENY_WRITE, None, 0)
def __init__(self, path): Archive.__init__(self) self.pITStorage = CreateObject(CLSID_ITStorage, CLSCTX_INPROC_SERVER, interface=IITStorage) wpath = c_wchar_p(path) self.pIStorage = self.pITStorage.StgOpenStorage( wpath, None, STGM_READ | STGM_SHARE_DENY_WRITE, None, 0)
def __init__(self, archive): Archive.__init__(self) self.archive = archive
def __init__(self, path): Archive.__init__(self) self.chm = chmlib.chm_open(path)
def __init__(self, path): Archive.__init__(self) self.tar = tarfile.open(path, 'r')