Home | Trees | Indices | Help |
---|
|
1 """Write the data to a sqlite database""" 2 3 from PyFoam.Infrastructure.RunHook import RunHook 4 5 from PyFoam.Error import error 6 7 from PyFoam.Basics.RunDatabase import RunDatabase 8 9 from os import path 1012 """Write the run information to a sqlite database"""2614 RunHook.__init__(self,runner,name) 15 16 self.create=self.conf().getboolean("createDatabase") 17 self.database=path.expanduser(self.conf().get("database")) 18 19 if not self.create and not path.exists(self.database): 20 error("The database",self.database,"does not exists")2123 print "Adding run information to database",self.database 24 db=RunDatabase(self.database,create=self.create) 25 db.add(self.runner.getData())
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Wed Jun 12 09:10:12 2013 | http://epydoc.sourceforge.net |