1 import ConfigParser,os.path
32 [ {defoption:value},[{dataoption:value}] ] 35 raise ValueError(self.
__inifilename+
' is not a file or does not exist')
40 sections=self.__parser.sections()
41 for section
in sections:
43 options=self.__parser.options(section)
46 thisectionresult[o]=self.__parser.get(section,o)
50 defsectionResult=thisectionresult
52 datasectionResult.append(thisectionresult)
53 return [defsectionResult,datasectionResult]
55 if __name__ ==
"__main__":
56 s=
'../test/norm_HFV2.cfg'
def __init__(self, filename)
norm file format spec lines beginning with a semicolon ';' a pound sign '#' or the letters 'REM' (upp...