def __init__(self, distpath, **kwargs):
        """
        Initialise an instance.

        :param distpath: A :class:`DistributionPath` instance to search.
        """
        super(DistPathLocator, self).__init__(**kwargs)
        assert isinstance(distpath, DistributionPath)
        self.distpath = distpath

        Initialise an instance.

        :param distpath: A :class:`DistributionPath` instance to search.
        
product/gradle-plugin/src/main/python/pip/_vendor/distlib/locators.py