'Returns the corresponden version os \'spawn_sync\' method
according to the Vte version the user has'

def spawn_sync(self, pty_flags, working_directory, argument_vector, env_variables, glib_spawn_flags, child_setup, child_setup_data, cancellable=None):

    if (vte_version == '2.91'):
        return Vte.Terminal.spawn_sync(self, pty_flags, working_directory, argument_vector, env_variables, glib_spawn_flags, child_setup, child_setup_data, cancellable)
    elif (vte_version == '2.90'):
        return Vte.Terminal.fork_command_full(self, pty_flags, working_directory, argument_vector, env_variables, glib_spawn_flags, child_setup, child_setup_data, cancellable)
