def get_copysetup(copytools, copytool_name):
    """
    Return the copysetup for the given copytool.

    :param copytools: copytools list from infosys.
    :param copytool name: name of copytool (string).
    :return: copysetup (string).
    """
    copysetup = ''
    if not copytools:
        return ''
    for ct in list(copytools.keys()):
        if copytool_name == ct:
            copysetup = copytools[ct].get('setup')
            break
    return copysetup
