def save_as(workbook, path): """[workbook].save_as(['path'])""" uri = GOffice.shell_arg_to_uri(path) workbook_view = Gnm.WorkbookView.new(workbook) file_saver = GOffice.FileSaver.for_file_name(uri) command_context = Gnm.CmdContextStderr.new() Gnm.wb_view_save_as(workbook_view, file_saver, uri, command_context) return True