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:
parent
1a642713a5
commit
2243535ca0
5
setup.py
5
setup.py
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user