def get_file_items(path, raise_not_found=False, ignore_empty_lines=True):
 import frappe.utils
 content = read_file(path, raise_not_found=raise_not_found)
 if content:
  content = frappe.utils.strip(content)
  return [p.strip() for p in content.splitlines() if ((not ignore_empty_lines) or (p.strip() and (not p.startswith(u'#'))))]
 else:
  return []

def get_file_items ( path , raise_not_found = False , ignore_empty_lines = True ) : import frappe . utils content = read_file ( path , raise_not_found = raise_not_found ) if content : content = frappe . utils . strip ( content ) return [ p . strip ( ) for p in content . splitlines ( ) if ( ( not ignore_empty_lines ) or ( p . strip ( ) and ( not p . startswith ( u'#' ) ) ) ) ] else : return [ ]
returns items from text file as a list .