parameters: (atl_file)
return_statement: return manual, auto
docstring: Pre-parses the ATL controls file if it exists and returns lists of preloads that were marked as auto-load and ones that weren't.
      :param atl_file: ATL Controls xml file
      :return: Lists of preload names that are manual-load and auto-load.
docstring_summary: Pre-parses the ATL controls file if it exists and returns lists of preloads that were marked as auto-load and ones that weren't.
      :param atl_file: ATL Controls xml file
      :return: Lists of preload names that are manual-load and auto-load.
docstring_tokens: Pre - parses the ATL controls file if it exists and returns lists of preloads that were marked as auto - load and ones that weren t . : param atl_file : ATL Controls xml file : return : Lists of preload names that are manual - load and auto - load .
function: def get_load_types_of_existing_preloads(atl_file):
      """
      Pre-parses the ATL controls file if it exists and returns lists of preloads that were marked as auto-load and ones that weren't.
      :param atl_file: ATL Controls xml file
      :return: Lists of preload names that are manual-load and auto-load.
      """
      manual = []
      auto = []
      if os.path.exists(atl_file):
          try:
              atl_doc = ElementTree.parse(atl_file)
          except ElementTree.ParseError as e:
              sys.exit('Error parsing {} at line {}, column {}'.format(atl_file, e.position[0], e.position[1]))
  
          root = atl_doc.getroot()
          audio_preloads_node = root.find('./AudioPreloads')
          if audio_preloads_node:
              autoloads = audio_preloads_node.findall('./ATLPreloadRequest')
              for node in autoloads:
                  preload_name = node.get('atl_name')
                  if node.get('atl_type') == 'AutoLoad':
                      auto.append(preload_name)
                  else:
                      manual.append(preload_name)
  
      return manual, auto
function_tokens: def get_load_types_of_existing_preloads ( atl_file ) : manual = [ ] auto = [ ] if os . path . exists ( atl_file ) : try : atl_doc = ElementTree . parse ( atl_file ) except ElementTree . ParseError as e : sys . exit ( 'Error parsing {} at line {}, column {}' . format ( atl_file , e . position [ 0 ] , e . position [ 1 ] ) ) root = atl_doc . getroot ( ) audio_preloads_node = root . find ( './AudioPreloads' ) if audio_preloads_node : autoloads = audio_preloads_node . findall ( './ATLPreloadRequest' ) for node in autoloads : preload_name = node . get ( 'atl_name' ) if node . get ( 'atl_type' ) == 'AutoLoad' : auto . append ( preload_name ) else : manual . append ( preload_name ) return manual , auto