commit a9edd170c7f712985666f4be0e98d48583eec35b
parent 3fb6951d105d7f7a7573b187e0419e33a574e5a9
Author: Janus <ysangkok@gmail.com>
Date: Fri, 13 Apr 2018 17:36:53 +0200
lightning-hub: include ln relative to current directory
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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