1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 17:38:39 +00:00

setup: refactor build_coins call

This commit is contained in:
Pavol Rusnak 2018-05-30 13:03:46 +02:00
parent 1a642713a5
commit 2243535ca0
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -39,10 +39,9 @@ class PrebuildCommand(Command):
raise Exception('trezor-common submodule seems to be missing.\n' +
'Use "git submodule update --init" to retrieve it.')
# generate and copy coins.json to the tree
coin_defs = os.path.join('vendor', 'trezor-common', 'defs', 'coins')
subprocess.check_call([os.path.join(coin_defs, 'tools', 'build_coins.py')])
build_coins = os.path.join(self.TREZOR_COMMON, 'defs', 'coins', 'tools', 'build_coins.py')
subprocess.check_call([build_coins])
shutil.move('coins.json', 'trezorlib')
# regenerate messages