meshlabxml/util.py
def write_filter(script, filter_xml):
    """ Write filter to FilterScript object or filename

    Args:
        script (FilterScript object or filename str): the FilterScript object
            or script filename to write the filter to.
        filter_xml (str): the xml filter string

    """
    if isinstance(script, mlx.FilterScript):
        script.filters.append(filter_xml)
    elif isinstance(script, str):
        script_file = open(script, 'a')
        script_file.write(filter_xml)
        script_file.close()
    else:
        print(filter_xml)
    return None
def write_filter(script, filter_xml):
    if isinstance(script, mlx.FilterScript):
        script.filters.append(filter_xml)
    elif isinstance(script, str):
        script_file = open(script, 'a')
        script_file.write(filter_xml)
        script_file.close()
    else:
        print(filter_xml)
    return None
def write_filter ( script , filter_xml ) : if isinstance ( script , mlx . FilterScript ) : script . filters . append ( filter_xml ) elif isinstance ( script , str ) : script_file = open ( script , 'a' ) script_file . write ( filter_xml ) script_file . close ( ) else : print ( filter_xml ) return None
Write filter to FilterScript object or filename

    Args:
        script (FilterScript object or filename str): the FilterScript object
            or script filename to write the filter to.
        filter_xml (str): the xml filter string
Write filter to FilterScript object or filename