diff --git a/autopilot/c-lightning-autopilot.py b/autopilot/c-lightning-autopilot.py index 996c121..dacfbc9 100644 --- a/autopilot/c-lightning-autopilot.py +++ b/autopilot/c-lightning-autopilot.py @@ -84,9 +84,9 @@ if __name__ == '__main__': args = parser.parse_args() # FIXME: find ln-dir from lightningd. - path = path = expanduser("~/.lightning/lightning-rpc") + path = expanduser("~/.lightning/lightning-rpc") if args.path_to_rpc_interface is not None: - path = expanduser(parser.path-to-rpc-interface) + path = expanduser(args.path_to_rpc_interface) balance = 1000000 if args.balance is not None: