def netpath_settings(pa, netpath):
    """Return configuration settings for web app mounted on ``netpath``.
    ``pa`` must be an instance of :class:`Webapps` platform class.
    """
    return pa.settings if netpath == 'platform' else pa.netpaths[netpath
        ].appsettings
