(self, file_name, changes=True, keys_only=False, comment_spacing=0, ignore_comments=None)
return self
Save the config to a file.
Save the config to a file.
Save the config to a file .
def save(self, file_name, changes=True, keys_only=False, comment_spacing=0, ignore_comments=None):
        """Save the config to a file."""
        output = self._build_for_file(changes=changes, keys_only=keys_only, comment_spacing=comment_spacing, ignore_comments=ignore_comments)
        create_folder(file_name)
        with open(file_name, 'w') as f:
            f.write(output)
        return self
def save ( self , file_name , changes = True , keys_only = False , comment_spacing = 0 , ignore_comments = None ) : output = self . _build_for_file ( changes = changes , keys_only = keys_only , comment_spacing = comment_spacing , ignore_comments = ignore_comments ) create_folder ( file_name ) with open ( file_name , 'w' ) as f : f . write ( output ) return self