

@memoized_property
def kubernetes_home(self):
    try:
        cmd = ['which', 'kubectl.sh']
        output = subprocess.check_output(cmd)
        return output.split('/cluster/kubectl.sh')[0]
    except subprocess.CalledProcessError as e:
        error_log(self.TAG, 'Could not get Kubernetes home: {}'.format(e))
        return None

dataset/ETHPy150Open binder-project/binder/binder/cluster.py KubernetesManager.kubernetes_home/original