Esempio n. 1
0
File: app.py Progetto: gahoo/SNAP
 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
Esempio n. 2
0
File: pipe.py Progetto: gahoo/SNAP
 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()