mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-15 09:50:57 +00:00
defs: small changes to build_coins.py
This commit is contained in:
parent
70ad683820
commit
714c33b142
@ -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…
Reference in New Issue
Block a user