defs: small changes to build_coins.py

pull/41/head
Pavol Rusnak 6 years ago
parent 70ad683820
commit 714c33b142
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

@ -3,6 +3,7 @@
import json
import glob
import re
import os
from hashlib import sha256
from binascii import unhexlify
@ -157,7 +158,8 @@ def process_json(fn):
coins = {}
defs = {}
for fn in glob.glob('../*.json'):
scriptdir = os.path.dirname(os.path.realpath(__file__))
for fn in glob.glob(scriptdir + '/../*.json'):
c, d = process_json(fn)
n = c['coin_name']
coins[n] = c
@ -165,4 +167,4 @@ for fn in glob.glob('../*.json'):
json.dump(coins, open('coins.json', 'w'), indent=4, sort_keys=True)
json.dump(defs, open('coindefs.json', 'w'), indent=4, sort_keys=True)
# json.dump(defs, open('coindefs.json', 'w'), indent=4, sort_keys=True)

Loading…
Cancel
Save