diff --git a/ci-scripts/main.py b/ci-scripts/main.py index 896502e6fe7c9939be69e1a12694b326c6a9cccf..ccb7419908d12b3dddb99a1cb84eb236343698db 100644 --- a/ci-scripts/main.py +++ b/ci-scripts/main.py @@ -3324,9 +3324,15 @@ import yaml xml_class_list_file='' if (os.path.isfile('xml_class_list.yml')): xml_class_list_file='xml_class_list.yml' +elif (os.path.isfile('ci_scripts/xml_class_list.yml')): + xml_class_list_file='ci_scripts/xml_class_list.yml' +else: + logging.error("XML action list yaml file cannot be found") + sys.exit("XML action list yaml file cannot be found") +#file will be opened only if it exists with open(xml_class_list_file,'r') as file: - # The FullLoader parameter handles the conversion from YAML - # scalar values to Python the dictionary format + # The FullLoader parameter handles the conversion + #from YAML scalar values to Python dictionary format xml_class_list = yaml.load(file,Loader=yaml.FullLoader) mode = ''