예제 #1
0
 def setUp(self):
     # Set do_logging to True if you like walls of text
     self.TestConfig = Configure.open(TEST_CONFIG)
     td = '__tempdir__'
     z = self.TestConfig['rdf.store_conf']
     if z.startswith(td):
         x = z[len(td):]
         h = tempfile.mkdtemp()
         self.TestConfig['rdf.store_conf'] = h + x
     self.delete_dir()
     PyOpenWorm.connect(conf=self.TestConfig, do_logging=False)
예제 #2
0
파일: data.py 프로젝트: nheffelman/pyopdata
 def open(cls,file_name):
     """ Open a file storing configuration in a JSON format """
     Configureable.conf = Configure.open(file_name)
     return cls()
예제 #3
0
 def open(cls, file_name):
     """ Open a file storing configuration in a JSON format """
     Configureable.conf = Configure.open(file_name)
     return cls()