mirror of
https://github.com/ckb-next/ckb-next.git
synced 2026-10-10 12:27:21 -04:00
Use relative paths to protocol.h in defs2magic
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
#!/usr/bin/env python3
|
||||
import sys
|
||||
import re
|
||||
import os
|
||||
|
||||
defs = "../src/daemon/protocol.h"
|
||||
defs_file = open(defs, "r")
|
||||
defspath = os.path.dirname(__file__) + "/" + defs
|
||||
defs_file = open(defspath, "r")
|
||||
defs_list = defs_file.readlines()
|
||||
|
||||
cmds = []
|
||||
|
||||
Reference in New Issue
Block a user