parameters: (file_path, list_name)
return_statement: return list
docstring: Looks for a Python list called list_name in the file specified
      by file_path and returns it.
  
      If the file or list name aren't found, this function will return
      an empty list.
docstring_summary: Looks for a Python list called list_name in the file specified
      by file_path and returns it.
docstring_tokens: Looks for a Python list called list_name in the file specified by file_path and returns it .
function: def get_list_from_file(file_path, list_name):
      '''Looks for a Python list called list_name in the file specified
      by file_path and returns it.
  
      If the file or list name aren't found, this function will return
      an empty list.
  
      '''
  
      list = []
  
      # Read in the file if it exists.
      if os.path.exists(file_path):
          file_in = open(file_path, "r")
  
          # Look for the list.
          list_string = ""
          parsing_multiline_list = False
          for line in file_in:
  
              # Remove any comments.
              if '#' in line:
                  (line, comment) = line.split('#', 1)
  
              # Parse the line.
              if list_name in line or parsing_multiline_list:
                  list_string += line
  
                  # Handle multiline lists.
                  if ']' not in list_string:
                      parsing_multiline_list = True
                  else:
                      # Evaluate the list once its end is reached.
                      # Make the split function only split it once.
                      list = eval(list_string.split('=', 1)[1].strip())
                      break
  
          # Close the file
          file_in.close()
  
      return list
function_tokens: def get_list_from_file ( file_path , list_name ) : list = [ ] # Read in the file if it exists. if os . path . exists ( file_path ) : file_in = open ( file_path , "r" ) # Look for the list. list_string = "" parsing_multiline_list = False for line in file_in : # Remove any comments. if '#' in line : ( line , comment ) = line . split ( '#' , 1 ) # Parse the line. if list_name in line or parsing_multiline_list : list_string += line # Handle multiline lists. if ']' not in list_string : parsing_multiline_list = True else : # Evaluate the list once its end is reached. # Make the split function only split it once. list = eval ( list_string . split ( '=' , 1 ) [ 1 ] . strip ( ) ) break # Close the file file_in . close ( ) return list