def get_config(pack, user):
    """Returns config for given pack and user."""
    LOG.debug('Attempting to get config for pack "%s" and user "%s"' % (pack, user))
    if pack and user:
        LOG.debug("Pack and user found. Loading config.")
        config_loader = ContentPackConfigLoader(pack_name=pack, user=user)

        config = config_loader.get_config()

    else:
        config = {}

    LOG.debug("Config: %s", config)

    return config
Returns config for given pack and user.
st2common/st2common/util/config_loader.py