コード例 #1
0
ファイル: config.py プロジェクト: BillTheBest/CeTune
 def get_config(self):
     testcase_list = []
     try:
         with open(self.conf_path,"r") as f:
             lines = f.readlines()
         for line in lines:
             p = line.split()
             testcase_list.append( self.parse_benchmark_cases( p ) )
     except:    
         common.bash("cp %s %s" % (self.default_conf_path, self.conf_path))
         with open(self.conf_path,"r") as f:
             lines = f.readlines()
         for line in lines:
             p = line.split()
             testcase_list.append( self.parse_benchmark_cases( p ) )
     return testcase_list
コード例 #2
0
 def get_config(self):
     testcase_list = []
     try:
         with open(self.conf_path, "r") as f:
             lines = f.readlines()
         for line in lines:
             p = line.split()
             testcase_list.append(self.parse_benchmark_cases(p))
     except:
         common.bash("cp %s %s" % (self.default_conf_path, self.conf_path))
         with open(self.conf_path, "r") as f:
             lines = f.readlines()
         for line in lines:
             p = line.split()
             testcase_list.append(self.parse_benchmark_cases(p))
     return testcase_list