mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-27 18:05:00 +00:00
13 lines
216 B
Python
13 lines
216 B
Python
import os
|
|
import sys
|
|
|
|
import yaml
|
|
|
|
path = sys.argv[1]
|
|
if os.path.islink(path):
|
|
exit()
|
|
|
|
with open(path, "r") as f:
|
|
# safe_load_all works for both single and multi-document YAML
|
|
list(yaml.safe_load_all(f))
|