From 3f2f74bae7aace6ca88200647e49590e922ff656 Mon Sep 17 00:00:00 2001 From: Ben Congdon Date: Wed, 13 Dec 2017 17:32:25 -0600 Subject: [PATCH] docs: fix python path typo `os.path.expanduser` is needed to evaluate paths relative to the user's home directory. --- docs/grpc/python.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/grpc/python.md b/docs/grpc/python.md index 403811f07..22ab7f3af 100644 --- a/docs/grpc/python.md +++ b/docs/grpc/python.md @@ -54,7 +54,7 @@ import grpc # Lnd cert is at ~/.lnd/tls.cert on Linux and # ~/Library/Application Support/Lnd/tls.cert on Mac -cert = open('~/.lnd/tls.cert').read() +cert = open(os.path.expanduser('~/.lnd/tls.cert')).read() creds = grpc.ssl_channel_credentials(cert) channel = grpc.secure_channel('localhost:10009', creds) stub = lnrpc.LightningStub(channel)