INNER CODE UNIT · Python
generate
mongodb/mongo-c-driver · .evergreen/legacy_config_generator/evergreen_config_generator/__init__.py:89
def generate(config: Any, path: str):
"""Dump config to a file as YAML.
config is a dict, preferably an OrderedDict. path is a file path.
"""
f = open(path, 'w+')
f.write(
"""####################################
# Evergreen configuration
#
# Generated with evergreen_config_generator from
# github.com/mongodb-labs/drivers-evergreen-tools
#
# DO NOT EDIT THIS FILE
#
####################################
"""
)
f.write(yaml_dump(config))