def _get_param(config, name):
    """Retrieve stringified option from parameters or ini config."""
    value = config.getoption(name)
    if value and isinstance(value, list):
        return ' '.join(value)
    if not value or value == '':
        value = config.getini(name)
    if value is None:
        return ''
    return value
