meshlabxml/mlx.py
def save_to_file(self, script_file):
        """ Save filter script to an mlx file """
        # TODO: rasie exception here instead?
        if not self.filters:
            print('WARNING: no filters to save to file!')
        script_file_descriptor = open(script_file, 'w')
        script_file_descriptor.write(''.join(self.opening + self.filters + self.closing))
        script_file_descriptor.close()
def save_to_file(self, script_file):
        """ Save filter script to an mlx file """
        # TODO: rasie exception here instead?
        if not self.filters:
            print('WARNING: no filters to save to file!')
        script_file_descriptor = open(script_file, 'w')
        script_file_descriptor.write(''.join(self.opening + self.filters + self.closing))
        script_file_descriptor.close()
Save filter script to an mlx file