Created
January 6, 2024 22:44
-
-
Save rreece/8951e87ec4d06a7ce1874570c5baee6d to your computer and use it in GitHub Desktop.
read_yaml.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import yaml | |
def read_yaml(path): | |
with open(path, 'r') as f: | |
config = yaml.safe_load(f) | |
return config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment