def to_file(self, file_loc):
"""
Dumps the configuration to a YAML file in the specified location.
This will not reflect any runtime modifications to the configuration
object.
"""
with open(file_loc, 'w') as yf:
yaml.dump(self._base_dict, stream=yf, default_flow_style=False)
评论列表
文章目录