def __loaddb(self, dbpath): if not dbpath.endswith('.db'): dbpath = dbpath+'.db' if not os.path.exists(dbpath): raise RopperError('db does not exist: '+dbpath) dao = GadgetDAO(dbpath, self.__cprinter) self.binary.gadgets = dao.load(self.binary) self.binary.loaded = True
def __loaddb(self, dbpath): if not dbpath.endswith('.db'): dbpath = dbpath + '.db' if not os.path.exists(dbpath): raise RopperError('db does not exist: ' + dbpath) dao = GadgetDAO(dbpath, self.__cprinter) self.binary.gadgets = dao.load(self.binary) self.binary.loaded = True