#!/usr/bin/env python
import sysimport yaml
def main(argv):
with open(argv[0]) as stream:try:#print(yaml.load(stream))return 0except yaml.YAMLError as exc:print(exc)return 1
if __name__ == "__main__":sys.exit(main(sys.argv[1:]))
def read_yaml_file(full_path=None, relative_path=None):if relative_path is not None:resource_file_location_local = ProjectPaths.get_project_root_path() + relative_pathelse:resource_file_location_local = full_path
with open(resource_file_location_local, 'r') as stream:try:file_artifacts = yaml.safe_load(stream)except yaml.YAMLError as exc:print(exc)return dict(file_artifacts.items())