def set_dmi_data(path, headerFile, parser): if(os.path.isfile(path)): dmi = DMI(path) with open(headerFile, 'r') as f: dmi.setHeader(f.read(), path)