1 from __future__
import print_function
2 import ConfigParser,os.path
33 [ {defoption:value},[{dataoption:value}] ] 36 raise ValueError(self.
__inifilename+
' is not a file or does not exist')
41 sections=self.__parser.sections()
42 for section
in sections:
44 options=self.__parser.options(section)
47 thisectionresult[o]=self.__parser.get(section,o)
51 defsectionResult=thisectionresult
53 datasectionResult.append(thisectionresult)
54 return [defsectionResult,datasectionResult]
56 if __name__ ==
"__main__":
57 s=
'../test/norm_HFV2.cfg'
S & print(S &os, JobReport::InputFile const &f)
def __init__(self, filename)
norm file format spec lines beginning with a semicolon ';' a pound sign '#' or the letters 'REM' (upp...