From a9edd170c7f712985666f4be0e98d48583eec35b Mon Sep 17 00:00:00 2001 From: Janus Date: Fri, 13 Apr 2018 17:36:53 +0200 Subject: [PATCH] lightning-hub: include ln relative to current directory --- lib/lightning.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/lightning.py b/lib/lightning.py index 84c0d41f9..78a860c6a 100644 --- a/lib/lightning.py +++ b/lib/lightning.py @@ -3,7 +3,8 @@ import datetime import sys import struct import traceback -sys.path.insert(0, "lib/ln") +import os.path +sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), "ln")) from .ln import rpc_pb2 from jsonrpclib import Server