2024-04-18 15:32:38 +02:00
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
|
|
|
|
import yaml
|
|
|
|
|
|
|
|
path = sys.argv[1]
|
|
|
|
if os.path.islink(path):
|
|
|
|
exit()
|
2025-08-21 18:05:15 +02:00
|
|
|
|
|
|
|
with open(path, "r") as f:
|
|
|
|
# safe_load_all works for both single and multi-document YAML
|
|
|
|
list(yaml.safe_load_all(f))
|