def shouldStillKeepGoing(self, path):
        for index, target in enumerate(path.eachTargetAs(IExit)):
            if index > 0:
                return False
        return True
Stop at the first exit that you find.
dataset/ETHPy150Open twisted/imaginary/imaginary/idea.py/Traversability.shouldStillKeepGoing