EXAConf.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:docker-db 作者: EXASOL 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号