mirror of
https://github.com/jellyfin/jellyfin-build.git
synced 2024-11-23 05:49:44 +00:00
16 lines
428 B
Python
16 lines
428 B
Python
#!/usr/bin/env python3
|
|
|
|
import yaml
|
|
|
|
def load_manifest(manifest_file_name):
|
|
"""
|
|
Read in an arbitrary YAML manifest and return it
|
|
"""
|
|
with open(manifest_file_name, 'r') as manifest_file:
|
|
try:
|
|
cfg = yaml.load(manifest_file)
|
|
except yaml.YAMLError as e:
|
|
print("ERROR: Failed to load YAML manifest {}: {{".format(manifest_file_name, e))
|
|
return None
|
|
return cfg
|