def run(self):
# we should probably do this somewhere else
doc = Document()
lfde = doc.createElement("lfde")
doc.appendChild(lfde)
bootscheme = doc.createElement("bootscheme")
bootscheme.appendChild(doc.createTextNode(self.choices.boot_scheme))
lfde.appendChild(bootscheme)
if os.path.exists("/etc/lfde") == False:
os.makedirs("/etc/lfde")
config_fh = open("/etc/lfde/config.xml", "w")
config_fh.write(doc.toprettyxml())
config_fh.close()
self.progress_callback(1.0)
评论列表
文章目录