Commit e2b19083 authored by hardy's avatar hardy

fixing the xml action list yaml file location search

parent 8b3eb61f
...@@ -3324,9 +3324,15 @@ import yaml ...@@ -3324,9 +3324,15 @@ import yaml
xml_class_list_file='' xml_class_list_file=''
if (os.path.isfile('xml_class_list.yml')): if (os.path.isfile('xml_class_list.yml')):
xml_class_list_file='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: with open(xml_class_list_file,'r') as file:
# The FullLoader parameter handles the conversion from YAML # The FullLoader parameter handles the conversion
# scalar values to Python the dictionary format #from YAML scalar values to Python dictionary format
xml_class_list = yaml.load(file,Loader=yaml.FullLoader) xml_class_list = yaml.load(file,Loader=yaml.FullLoader)
mode = '' mode = ''
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment