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