def fetch_config_setting(settings_object, name):
    """Fetch a setting from the settings object where name is a dotted path.

    >>> name = 'browser_monitoring.auto_instrument'
    >>>
    >>> global_settings = global_settings()
    >>> global_settings.browser_monitoring.auto_instrument = True
    >>> fetch_config_setting(global_settings, name)
    True

    """
    target = settings_object
    fields = name.split('.', 1)
    target = getattr(target, fields[0])
    while len(fields) > 1:
        fields = fields[1].split('.', 1)
        target = getattr(target, fields[0])
    return target
