def commit(self):
"""
Writes the configuration to disk (into '$RootDir/EXAConf')
"""
self.config.write()
# reload in order to force type conversion
# --> parameters added as lists during runtime are converted back to strings (as if they have been added manually)
self.config.reload()
# modify permissions
try:
os.chmod(self.conf_path, stat.S_IRUSR | stat.S_IWUSR)
except OSError as e:
raise EXAConfError("Failed to change permissions for '%s': %s" % (self.conf_path, e))
#}}}
#{{{ Platform supported
评论列表
文章目录