def prepare_DB(): db = DB(':memory:', pipe_path = os.path.dirname(os.path.abspath(kwargs['dependence_file'])), apps = {self.appname: self}, parameters = self.parameters.copy(), dependencies = self.dependencies) db.format() db.mkOSSuploadSH() return db
def buildDB(self, overwrite): db = DB( db_path = os.path.join(self.proj_path, 'snap.db'), pipe_path = self.pipe_path, apps = self.apps, parameters = self.parameters, dependencies = self.dependencies, overwrite = overwrite) db.format() db.mkOssSyncSH() db.add()