def load_key_file(path):
    try:
        key_file = path.open()
    except IOError as e:
        code, failure = e
        raise PathError(
            b"Private key file could not be opened.",
            e.filename, code, failure
        )
    keypair = ComparableKeyPair(
        keypair=KeyPair.load(key_file.read(), format=crypto.FILETYPE_PEM)
    )
    return keypair
Find the editor searching the environment, lastly ask the user.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/ca/_ca.py/load_key_file--crossover with--dataset/ETHPy150Open aldebaran/qibuild/python/qisys/interact.py/get_editor