1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-13 19:18:56 +00:00

tools/build_mocks: adapt to micropython -> embed rename

This commit is contained in:
Jan Pochyla 2017-07-28 16:36:14 +02:00
parent 803e39c2a8
commit bab1303b1b

View File

@ -72,7 +72,7 @@ def build_module(mod_file, dest):
.split('.')[0] \
.split('-')[0] \
.replace('mod', '')
mod_desc = mod_file.replace('../micropython/extmod', 'extmod')
mod_desc = mod_file.replace('../embed/extmod', 'extmod')
for l in open(mod_file):
if not l.startswith(COMMENT_PREFIX):
@ -109,4 +109,4 @@ def clear_directory(top_dir):
if __name__ == '__main__':
clear_directory('../mocks/generated')
build_directory('../micropython/extmod', '../mocks/generated')
build_directory('../embed/extmod', '../mocks/generated')