Files
anvil/tools/validate_yaml.py
2012-03-16 17:02:28 -07:00

13 lines
189 B
Python
Executable File

#!/usr/bin/env python
"""Try to read a YAML file and report any errors.
"""
import sys
import yaml
if __name__ == "__main__":
with open(sys.argv[1], 'r') as f:
yaml.load(f)